Top "Entitymanager" questions

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

Symfony2 entityManager in model

I'm going to use entity_manager in my model. But entity_manager is only available in controller: throw $em = $this-&…

model-view-controller symfony doctrine entitymanager
EntityManager query by joinColumn

I have a Login entity and a Customer entity. Login.username is a foreign key in the customer table. Hence …

java jpa entitymanager joincolumn
How to change Entity type in JPA?

In my specific case, I am making use of a discriminator column strategy. This means that my JPA implementation (Hibernate) …

hibernate jpa transactions entitymanager
JPA EntityManager Static or Instance?

I've built some JPA stuff in the past that used an instance of the javax.persistence.EntityManager per instance of …

java hibernate jpa entitymanager
findAll with conditions in symfony2

is there a way to use the findAll() function with conditions? I want to do something like ->findAll(…

symfony repository entitymanager findall
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
Entities Not Persisting - Spring + Hibernate + JPA

I'm using Spring + Hibernate + JPA and I have a situation where I can't get my entities to persist to the …

hibernate spring transactions entitymanager transactional
What is the easiest way to have CDI and JPA in Java SE?

I would like to have in Java SE @Stateless public class CarDAO { @Inject private EntityManager em; public Car findById(Long …

java jpa cdi entitymanager
ZF2 and EntityManager (Doctrine)

I have a problem. I try to get the Entity-Manager without a Controller, but I found no way. At this …

doctrine zend-framework2 entitymanager
Why is persistence unit named null when persistence.xml exists

I am using Wildfly 8.1 together with a EJB Project (EJB 3.2) containing entities. When trying to inject the Entity Manager into …

java wildfly entitymanager