Top "Entitymanager" questions

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

WELD-001408 Unsatisfied dependencies when injecting EntityManager

I have @Stateless bean which implements two interfaces (remote and local). I have also added @LocalBean anotation for accessing bean …

dependency-injection java-ee-6 cdi entitymanager stateless-session-bean
how we can get JPA EntityManager Flush work

my question is why flush doesn't work : public void ejbService(){ Customer c = em.find(Customer.class,1); c.setName("newName"); em.…

java jpa transactions entitymanager
Does an entity manager create a connection to the database?

In my project, I forgot to close the entity manager for each operation. After some time, I got exception due …

jpa-2.0 entitymanager
JPA - createEntityManagerFactory returns Null

Noob question here. I'm following this example/tutorial to try and isolate a problem I keep getting on my main …

java hibernate jpa entitymanager hibernate-entitymanager
How to inject EntityManager in CDI (weld)?

In my project , I use JSF+JPA+CDI+WildFly 8.2 in the persistence layer. I have a BasicDao , like this: public …

jpa cdi wildfly entitymanager weld
entity manager doesn't have method getCriteriaBuilder()

I am introducing JPA2.0 in my application working on Oracle9i database and I added the libraries EclipseLink(JPA2.0) and …

jpa-2.0 entitymanager
difference between 'detach' and 'remove' entityManager's methods

I would like to know what's the real difference between em.detach(entity), em.remove(entity) and using a JPQL …

jpa jpql entitymanager
Update/delete queries cannot be typed JPA

I'm using the Spring framework for working on training projects. I'm also using JPA and have been having a hell …

java spring jpa entitymanager sql-delete
How do I resolve "Unable to resolve attribute [organizationType.id] against path" exception?

I'm using Spring 3.1.1.RELEASE, Hibernate 4.1.0.Final, JUnit 4.8, and JPA 2.0 (hibernate-jpa-2.0-api). I'm trying to write a query and search based …

hibernate jpa entitymanager hibernate-criteria
How to use silex with Doctrine orm EntityManager?

Am new to the Silex framework. And I would like to do simple SQL DB connection using doctrine entity manager. …

doctrine-orm entitymanager silex