Remove the following line, it interferes with Spring-managed transactions:
<property name="current_session_context_class">thread</property>
More Related Contents:
- How to configure Spring to make JPA (Hibernate) and JDBC (JdbcTemplate or MyBatis) share the same transaction
- Why is HibernateDaoSupport not recommended?
- Why does Hibernate disable INSERT batching when using an IDENTITY identifier generator
- Transaction marked as rollback only: How do I find the cause
- What is the ‘best’ way to do distributed transactions across multiple databases using Spring and Hibernate
- Do you need a database transaction for reading data?
- Invalidating JPA EntityManager session
- Spring @Transactional with a transaction across multiple data sources
- javax.transaction.Transactional vs org.springframework.transaction.annotation.Transactional
- How to rollback a database transaction when testing services with Spring in JUnit?
- HibernateException: Couldn’t obtain transaction-synchronized Session for current thread
- What is the right way to use spring MVC with Hibernate in DAO, service layer architecture
- Spring, JPA, and Hibernate – how to increment a counter without concurrency issues
- In Spring with jpa/hibernate, how do I keep a session open to avoid lazy initialization exceptions?
- How can I log SQL statements in Spring Boot?
- Hibernate: Difference between session.get and session.load
- Why do I need Transaction in Hibernate for read-only operations?
- Hibernate: one-to-one lazy loading, optional = false
- How to use Spring managed Hibernate interceptors in Spring Boot?
- Spring @Transactional read-only propagation
- Disable all Database related auto configuration in Spring Boot
- @Transactional method called from another method doesn’t obtain a transaction
- How to connect to multiple databases in Hibernate
- mapping Hibernate query results to custom class?
- Spring Data JPA – Pass column name and value as parameters
- Change database schema during runtime based on logged in user
- How to map sql native query result into DTO in spring jpa repository?
- How is Hibernate deciding order of update/insert/delete
- hibernate – get id after save object
- UnsupportedOperationException: The application must supply JDBC connections