Change your AnnotationSessionFactoryBean to org.springframework.orm.hibernate4.LocalSessionFactoryBean
(Hibernate 4) and you’ll be good to go. The AnnotationSessionFactoryBean was replaced with the LocalSessionFactoryBean as it does class path scanning now.
More Related Contents:
- How do I call the default deserializer from a custom deserializer in Jackson
- Mapping ManyToMany with composite Primary key and Annotation:
- Spring Boot – Handle to Hibernate SessionFactory
- How to fetch FetchType.LAZY associations with JPA and Hibernate in a Spring Controller
- Unable to get spring boot to automatically create database schema
- No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor
- Why does Hibernate disable INSERT batching when using an IDENTITY identifier generator
- Transaction marked as rollback only: How do I find the cause
- Hibernate table not mapped error in HQL query
- Can I combine a @Query definition with a Specification in a Spring Data JPA repository method?
- java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session
- Do you need a database transaction for reading data?
- Hibernate-sequence doesn’t exist
- org.hibernate.MappingException: Unknown entity: annotations.Users
- Could not commit JPA transaction: Transaction marked as rollbackOnly
- Spring JpaRepository – Detach and Attach entity
- Rollback transaction after @Test
- How do I properly do a background thread when using Spring Data and Hibernate?
- Getting a ‘No thread-bound request found’ error from spring in my web app
- Spring 4 + Hibernate 5 = org.springframework.orm.jpa.EntityManagerHolder cannot be cast to org.springframework.orm.hibernate5.SessionHolder
- How to map a JSON column with H2, JPA, and Hibernate
- HibernateException: Couldn’t obtain transaction-synchronized Session for current thread
- Error creating bean with name ‘entityManagerFactory
- Spring, JPA, and Hibernate – how to increment a counter without concurrency issues
- Filtering out log4j messages from third-party frameworks?
- How to setup Hibernate to read/write to different datasources?
- hibernate unique key validation
- How to make a database listener with java?
- How to use DTO in JSF + Spring + Hibernate
- Could not initialize proxy – no Session