Skip to content
Advertisement

Tag: sessionfactory

Cannot instantiate Session Factory in Spring Boot Application

Whenever I run Spring boot app, I got following errors about EntityManagerFactory and SessionFactory which results in Spring error with current stack trace below: Classes: Main: Configuration class: How can I fix that? What is the problem with creating the beans? I cannot find any information about this problem Dependencies for Hibernate and Spring are below: Hibernate -> 5.4.1.Final Spring

Hibernate upgrade to 5.2 – Session Factory creation and replacing PersistentClass for getting entity class properties

I am currently upgrading my Hibernate version to the latest version 5.2.10. I replaced my code in the HibernateUtil for the SessionFactory creation. 4.3.11.Final (Previous): 5.2.10 Final (New): Now I have a method which would fetch me the list of column names by passing the DB table name as a string. I did it like this before in 4.3.11.Final: Now

Advertisement