简体   繁体   中英

What can make an object non-transactional?

I am reading about JPA, when I came across POJO properties that makes it a jpa entity and one of the properties is "it should be transactional" which means -according to the book- : changes made to the database either succeed or fail atomically, so the persistent view of an entity should indeed be transactional.

And my question is : what in a java object might make it non transactional?

What can make an object non-transactional?

--> No using annotation @Transactional in Java POJO class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM