Top "Hibernate-entitymanager" questions

Hibernate EntityManager implements the programming interfaces and lifecycle rules as defined by the JPA 2.0 specification.

Hibernate Entity manager auto flush before query and commit changes to DB in transaction

I am using Hibernate 3.6.0 with JPA 2 on Jboss AS 6.0.0 final. In an EJB of mine, there's a method which updated …

hibernate transactions jpa-2.0 entitymanager hibernate-entitymanager
How to use JOIN using Hibernate's session.createSQLQuery()

I have two Entity (tables) - Employee & Project. An Employee can have multiple Projects. Project table's CREATOR_ID field …

java hibernate jpa hibernate-entitymanager
BeanCreationException: Error creating bean with name entityManagerFactory defined in class path resource [applicationContext.xml]

I am trying to run my project but I get the following error : WARN : org.hibernate.ejb.HibernatePersistence - HHH015016: …

spring-mvc hibernate-entitymanager
hibernate not-null property references a null or transient value:

This problem appears randomly. Program has worked well for over a month and today it crashed. While adding a new …

hibernate entitymanager hibernate-entitymanager
Spring + EntityManagerFactory +Hibernate Listeners + Injection

i have a simple question. Its possible to add dependency injection via @Ressource or @Autowired to the Hibernate Eventlistener? I …

java hibernate spring jpa hibernate-entitymanager
bidirectional onetomany causes "Unable to build Hibernate SessionFactory" error

I'm trying to make my entities be related through bidirectional onetomany realtionship but it causes some errors i will posted …

java spring hibernate jpa hibernate-entitymanager
How to enable load time / runtime weaving with Hibernate JPA and Spring Framework

I'm using Hibernate as a JPA provider (I'm using its EntityManagerFactory instead of its SessionFactory) in a Spring Framework application. …

spring hibernate jpa hibernate-entitymanager load-time-weaving
Declared metamodel attributes work fine BUT Inherited Metamodel Attributes are NULL. Why?

I am not able to run the following test:- @Test public void test() { EntityManager em = entityManagerFactory.createEntityManager(); em.getTransaction().…

hibernate jpa jpa-2.0 hibernate-entitymanager
Hibernate EntityManager 4 ClassNotFound Exception

I upgraded my application from hibernate-entitymanager-3.6.10.Final to hibernate-entitymanager-4.1.6.Final by using maven. At the application initialization phase it raised …

hibernate hibernate-entitymanager
No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 0

I have a problem with my spring security/hibernate app, which i can't resolve, since i'm new to spring and …

spring hibernate hibernate-entitymanager