Reputation: 1521
I am using JPA with hibernate for mysql.
I want to know whether jpa query methods will execute with or without transaction by default.
I am not using transaction management or locking of any sort.
Authoritative reference will be appreciated.
Thank you !
Upvotes: 1
Views: 888
Reputation: 67
The individual jpa methods can be transactional, but if your logic uses several of these methods(several read/write operations) and you want them to run as an atomic operation in a multithreaded environment, you would still need to make the logic/method transactional to achieve that.
Upvotes: 1