Top "Hibernate-4.x" questions

Represents the 4.x release of the Hibernate Object/Relational Mapping project

Getting error Could not locate appropriate constructor on class

I am trying to map native SQL result to my POJO. Here is the configuration. I am using spring. <…

spring-data-jpa hibernate-4.x jpa-2.1
"Found: bit, expected: boolean" after Hibernate 4 upgrade

I'm trying to upgrade from Hibernate 3.6.5 to 4.0 (and from Spring 3.0.5 to 3.1 which is required for Hibernate 4 support). Now, with both …

java mysql hibernate hsqldb hibernate-4.x
java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext

I am developing Spring MVC Hibernate Integration example. In this example I'm using Spring 4.1.9.RELEASE and Hibernate 5.1.0.Final. If I …

java jpa-2.0 hibernate-4.x hibernate-5.x
Get Connection object while using SessionFactory.getCurrentSession() in Hibernate

I'm trying to get Connection object in Hibernate when SessionFactory.getCurrentSession() is used. Source code import java.sql.Connection; import …

java hibernate hibernate-4.x hibernate-5.x
Generate DDL script at MAVEN build with Hibernate4 / JPA 2.1

It seems like the hibernate3-maven-plugin used to generate DDL create/drop scripts is not compatible any more with Hibernate 4.3 …

maven ddl hibernate-4.x jpa-2.1 hibernate3-maven-plugin
Spring 3, Hibernate 4 AutoWired sessionFactory with Generic DAO

Using Spring MVC 3 & Hibernate 4 I'm getting: java.lang.NullPointerException com.daniel.rr.dao.common.DAOImpl.getSession(DAOImpl.java:22) com.…

spring-mvc spring-3 hibernate-4.x hibernate-generic-dao
What does HHH000387 Hibernate warning mean?

I have just updated to Hibernate 4.0 and am seeing the warning message : HHH000387: ResultSet's statement was not registered in my …

hibernate hibernate-4.x
Org.hibernate.HibernateException: createQuery is not valid without active transaction

Following this question, I am trying to add Hibernate 4.3.8.Final to Spring 4.1.5.RELEASE; but - The code throws an exception …

java spring hibernate spring-mvc hibernate-4.x
Spring: Why the SessionFactoryUtils class in Hibernate 4 does not provide the getSession method?

What happened to the SessionFactoryUtils.getSession method from Hibernate 4 in Spring 3.1.0 ? What should be used instead ? sessionFactory.getCurrentSession() keeps giving …

spring hibernate-4.x