Asked • 04/25/19

Where does the @Transactional annotation belong?

Should you place the `@Transactional` in the `DAO` classes and/or their methods or is it better to annotate the Service classes which are calling using the DAO objects? Or does it make sense to annotate both "layers"?

1 Expert Answer

By:

Wasim M. answered • 04/30/19

Tutor
New to Wyzant

Working java professional with 10 years of experience

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.