Top "Entitymanager" questions

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

How to inject persistence context to different data source programmatically

In standard EJB 3, when injecting entity manager, persistence unit (which refers to datasource) is hardcoded into annotation: (or alternatively xml …

jpa persistence ejb-3.0 entitymanager
Java /JPA | Query with specified inherited type

I am building a query on a generic table "Sample" and I have several types which inherit from this table "…

java jpa entitymanager
Doctrine :FetchAll() with limits

I want to make a fetchAll() with limit ? Do you know if it's possible with the entity manager of symfony2 ? …

symfony doctrine-orm entitymanager
Injecting EntityManager using Spring ( Null Pointer Exception )

Here's the code insidy my ApplicationContext.xml <context:spring-configured /> <context:annotation-config /> <context:component-scan base-package="com.…

spring entitymanager
How to call Entity Manager in a constructor?

I've been trying to call Entity Manager in a constructor: function __construct() { $this->getDoctrine()->getEntityManager(); ... but, as …

php symfony constructor entitymanager
Am I supposed to call EntityManager.clear() often to avoid memory leaks?

I'm new to JPA/OpenJPA and I noticed that if I don't call EntityManager.clear() after i persist entities I …

java jpa memory-leaks openjpa entitymanager
JPA EntityManager, how does it work?

Sorry for the noob question, but I'm having problems with JPA+Hibernate so I thought that something is not clear …

hibernate jpa entitymanager
Pattern for JPA: Generating Data Transfer Object DTO from Entity and merging DTO to database

I am looking for a good way to create Data Transfer Objects (DTO) from a JPA Entity and vice versa. …

java jakarta-ee jpa entitymanager dto
Why in JPA EntityManager queries throw NoResultException but find does not?

Can somebody tell me the intrinsic reasons why in the JPA 1.0 EntityManager when retrieving an Object via find, you have …

jpa entitymanager
What is exact purpose of flush in JPA

Some confusing explanation: flush(); Flushing is the process of synchronizing the underlying persistent store with persistable state held in memory.…

java jpa entitymanager