Top "Hibernate-5.x" questions

Hibernate-the object-relational mapping framework for the Java language released new version 5.x with enhanced features like query parser,multi-tenancy improvements,follow-on fetches,OSGi improvements etc.

Where did Configuration.generateSchemaCreationScript() go in Hibernate 5

In Hibernate 4.x, I used to generate and export the schema as defined in annotated entities as follows (using Spring …

java jpa configuration hbm2ddl hibernate-5.x
Hibernate 5: sessionFactory is null

Im getting a null value for sessionFactory variable at this line: sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory(); This is the …

java hibernate sessionfactory hibernate-5.x
How to solve AbstractMethodError in Hibernate 5?

i'm trying to use the hibernate 5 in Java EE with tomcat 7, and i'm getting this error: java.lang.AbstractMethodError org.…

java maven tomcat hibernate-5.x
Hibernate Migration from 4.3.x to 5.x for method org.hibernate.cfg.Configuration.getClassMapping(className)

In Hibernate 4.3.x, there is a method getClassMapping(className) of class org.hibernate.cfg.Configuration. But in Hibernate 5.x, this …

java hibernate hibernate-5.x
Spring Boot 2.0.0.M4 & Hibernate 5.2.11.Final could not find bean of type EntityManagerFactoryBuilder

I have clearly what seems to be some configuration issue, but I've been unable to resolve this myself. I have …

spring-boot hibernate-5.x
Migration to hibernate core 5.2.1 ava.lang.NoSuchMethodError: org.hibernate.Session.getFlushMode()Lorg/hibernate/FlushMode;

Using spring version:4.3.1,Spring data:1.10.2,hibernate core: 5.2.1. using postgres Database pg connector version :9.4.1208.jre7 After upgrading from hibernate 5.1.0 to 5.2.1 when …

spring hibernate spring-data-jpa spring-4 hibernate-5.x
HibernateTemplate is throwing java.lang.NoSuchMethodError: org.hibernate.Session.getFlushMode() -- Spring4.2.6, Hibernate5.2

I have looked around similar postings with SessionFactory and missing Main(). My problem is not related to them. Not sure …

java-8 spring-4 eclipse-mars hibernate-5.x
Programmatic SchemaExport / SchemaUpdate with Hibernate 5 and Spring 4

With Spring 4 and Hibernate 4, I was able to use Reflection to get the Hibernate Configuration object from the current environment, …

java spring hibernate spring-4 hibernate-5.x
HIbernate 5: generator class="sequence" not working

I have following mapping: <id name="id" type="java.lang.Long" column="id"> <generator class="sequence"> &…

java hibernate hibernate-5.x
java.time.LocalDate not supported in native queries by latest Spring Data/Hibernate?

Problem: Native queries with Spring Data returning dates return java.sql.Date not java.time.LocalDate, despite the setup. Context: …

spring-data spring-data-jpa hibernate-5.x localdate jsr310