How are the Spring @Transactional and the Hibernate @LockMode annotations related
问题 I wish to know the relation between transactions and locks. To be more specific, how is Spring's @Transactional related to Hibernate's LockMode. https://docs.jboss.org/hibernate/orm/4.0/devguide/en-US/html/ch05.html. http://docs.spring.io/autorepo/docs/spring/4.2.x/spring-framework-reference/html/transaction.html If I dont specify any lock while creating Session Object, and use @Transactional with readOnly as false , am I using Pessimistic Concurrenct Control. It would be a great help, if