coolb
coolb

Reputation: 1

Compiling issue on a reference to @Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW)

I have a java impl class that implements a Dao object.I am trying to annotate @ Transactional on one of the properties .. but i am running into compile time issues at the annotation reference.. what import am i missing.

/** * Saves person. */ @Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW) public Person save(Person person) { return entity.save(person); }

Thanks coolb

Upvotes: 0

Views: 221

Answers (1)

JavaRocky
JavaRocky

Reputation: 19893

You forgot to include the spring framework jar into your project's classpath.

Upvotes: 0

Related Questions