Top "Entitymanager" questions

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

Application vs Container Managed EntityManager

I am currently having a problem with understanding a concept of JPA. I am currently using/developing recent EclipseLink, Glassfish, …

java jpa entitymanager
How to get jpa datasource properties from Entity Manager

Hi everybody I was wondering if it's possible to get database connection properties through entity manager. My persistence.xml looks …

java jpa entitymanager jta
Is PersistenceAnnotationBeanPostProcessor of any use at all?

According to its JavaDoc, PersistenceAnnotationBeanPostProcessor seems to be responsible for injecting the EntityManager with the annotation @PersistenceContext. It appears to …

java spring jakarta-ee entitymanager spring-data
JPA EntityManager find with case sensitive key

I'm trying to use the JPA EntityManager find() method. My primary key is a string which corresponds to a user's …

mysql jpa find case-sensitive entitymanager
JPA - correct way to insert to a join table (with extra columns)

I managed to insert crew for my movie - now I want to do it the right way. Entities (abbreviated): @…

jpa eclipselink jpa-2.0 entitymanager
Spring + Hibernate + JPA + multiple databases

I have a Spring + Hibernate + JPA app. The user, when logging in, can choose from a list of DB's to …

hibernate spring jpa entitymanager multiple-databases
EntityManager.contains() returns false after persist()

The documentation for EntityManager.persist() says it will Make an instance managed and persistent. It is persisting the entity to …

java jpa persistence jta entitymanager
Heroku/Play/BoneCp connection issues

I have an app on heroku that uses play. It was working fine for the longest time, but somewhat recently …

java heroku playframework-2.0 entitymanager bonecp
How frequently should I create an EntityManager?

I have an EntityManagerFactory for which I can create one (or multiple) EntityManager instances. I'm using a Servlet environment, and …

java jpa entitymanager
When we need more than one EntityManager?

I am learning JPA and have one question: In which situations we need more than one EntityManager in our application? …

java jpa entitymanager