I started persistence coding and I came across annotations such as @Transactional
and @TransactionAttribute
. I understand the basic functionality of these two annotations and also that they can be used at both class level and at the method level. What I would like to understand better is the difference between these two annotations. Any help would be appreciated. Thanks.
@TransactionAttribute is for EJB3 beans.
@Transactional is for POJOs (for example Seam, Spring/Hibernate).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With