java - Does a Spring @Transactional annotated method overwrite an @Transactional(readOnly=true) method if called within it? -
java - Does a Spring @Transactional annotated method overwrite an @Transactional(readOnly=true) method if called within it? -
in name of reuse, phone call method annotated @transactional(readonly)
within method annotated @transactional
exclusive locking.
simply put, overwrite shared locking optimizations used readonly call?
depends on value of propagation
set outer transaction. explained in spring documentation:
http://docs.spring.io/spring-framework/docs/4.0.x/spring-framework-reference/html/transaction.html
java spring jpa
Comments
Post a Comment