Top "Entitymanager" questions

The EntityManager is the representation of a PersistenceContext, allowing a user to manipulate data pulled from a database.

Handle multiple EntityManager in Java EE application

I have Java EE application with about 10 EntityManagers (number of EMs will probably increase). My application also contains many stateless, …

java jpa entitymanager concept
Where to place @SqlResultSetMapping in case of @ConstructorResult

I'm trying to map a non-entity pojo with the createNativeQuery method of entityManager of jpa. By using something like this @…

jpa mapping entitymanager
Is it necessary to call a flush() (JPA interface) in this situation?

Because calling a flush() to get every entities persist from memory to database. So if I use call too much …

java hibernate jpa flush entitymanager
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
Spring + Hibernate + JPA

As of now I have a working Spring application with persistence. However now I want to use Hibernate with JPA …

java spring hibernate jpa entitymanager
Injecting Entitymanager via XML and not annnotations

What I am trying to do is inject through XML almost the same way that is done through A @PersistenceContext …

xml spring annotations entitymanager
Symfony2 subquery within Doctrine entity manager

I need to perform this query: SELECT * FROM (SELECT * FROM product WHERE car = 'large' ORDER BY onSale DESC) AS product_…

doctrine symfony entitymanager query-builder
Hibernate EntityManager, is it supposed to be used as a singleton?

I am not using Spring so I am creating an instance of EntityManager within a class. I used Hibernate-Eclipse reverse …

java hibernate spring entitymanager
ARJUNA016053: Could not commit transaction - JavaEE6 Timer

We have a timer that triggers a job and do some import / export processing. But on commit we open encounter …

transactions java-ee-6 entitymanager timer-jobs
JPA 1.0 error: The name is not a recognized entity or identifier. Known entity names: []

I am getting following exception while I try to execute simple JPA 1.0 code. What may be the cause? 5453 DevPQRWDPBSSPersist WARN […

java jpa entitymanager openjpa jpa-1.0