I am aware that JPA works with the default isolation level set for the database , if no isolation level is explicitly specified using the @Transactional
annotation.
So, for a simple JPA query like findByID(someId)
, is the transaction limited to the JPA query, or the transaction is applicable throughout the request thread ?
If I execute findById()
method twice in the same thread, does it execute within the same transaction ?