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.

What is the most suitable hibernate.dialect for postgresql 10.5?

I am looking at hibernate documentation here: https://docs.jboss.org/hibernate/orm/5.0/javadocs/org/hibernate/dialect/package-summary.html to …

postgresql hibernate hibernate-5.x postgresql-10
Hibernate & Spring: Exception when trying to create a transaction

So I'm trying to use Spring to manage hibernate transactions for the first time, and something's going wrong. I'm not …

java spring hibernate maven hibernate-5.x
UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0)

In the code below when I try to execute Main.java I am getting exception: Exception in thread "main" org.…

java hibernate configuration sessionfactory hibernate-5.x
Correct alternative to SharedSessionContract.createCriteria(Class persistentClass) in Hibernate 5.2

I am upgrading to latest Hibernate 5.2.0 FINAL from Hibernate 3.x. In my old code we were using criteria queries as …

java spring hibernate hibernate-5.x
java.lang.IllegalArgumentException: expecting IdClass mapping

I have configured composite primary key for my entity Employee as follows Employee.java: @Entity @Table(name="employee") @Proxy(lazy=…

java spring-4 sessionfactory hibernate-5.x spring-orm
Migrating to Hibernate 5

I am migrating an application from Hibernate 4.3 to Hibernate 5.0.1-Final I use ImplicitNamingStrategyComponentPathImpl as my hibernate.implicit_naming_strategy with …

java hibernate postgresql hibernate-5.x
Hibernate gives a strange ClassCast exception (using Transformers)

This code: @Override public List<FactCodeDto> getAllFactsWithoutParentsAsFactDto() { String completeQuery = FactCodeQueries.SELECT_DTO_FROM_FACT_WITH_NO_PARENTS; Query …

java spring hibernate hibernate-5.x
hibernate 5 sequencegenerator not giving the right value

After migrating to Hibernate 5.2.7, I seem to be getting incorrect values for the id field. My code: @Id @SearchableId @GeneratedValue(…

hibernate sequence hibernate-5.x
Spring 4 and Hibernate 5 method argument validation

How validate incoming arguments with Hibernate ? In XML <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"/> <…

java spring hibernate-5.x
AbstractMethodError in SessionFactoryImpl when upgrading to Hibernate 5

We're using Spring ORM 4.2.1.RELEASE to interact with Hibernate via JPA. Everything works fine with Hibernate 4.3.11.Final, but when we …

java spring hibernate jpa hibernate-5.x