entitymanager
Glassfish JPA: Problems injecting EntityManager
I am new to Java EE. I tried to get some first examples running (开发者_开发问答JPA). I am using Glassfish v3. The trouble is that I don\'t get the App Server injecting[详细]
2022-12-21 19:46 分类:问答Am I supposed to call EntityManager.clear() often to avoid memory leaks?
I\'m new to开发者_C百科 JPA/OpenJPA and I noticed that if I don\'t call EntityManager.clear() after i persist entities I get an OutOfMemoryError (I keep adding new entities in a loop). I\'m not sure i[详细]
2022-12-20 01:12 分类:问答EntityManager refresh problem
I\'m getting this error from my EntityManager when I call the refresh function. public void saveProduct(Product product) {[详细]
2022-12-17 13:25 分类:问答Spring + Hibernate + JPA [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect开发者_如何学Python answers to be supported by facts, references,or expertise, but this question will likel[详细]
2022-12-17 09:47 分类:问答Create JPA EntityManager without persistence.xml configuration file
Is there a way to initialize the EntityManager without a persistence unit defined? Can you give all the required properties to create an entity manager? I need to create the EntityManager from the use[详细]
2022-12-15 10:20 分类:问答Persisting a new but identical entity with JPA reporting duplicate entry
I have a JPA project connected to a MySQL database where my entity object is mapped to a table with a constraint on 2 columns. That is:[详细]
2022-12-14 21:55 分类:问答In Spring, how do I use a ClassPathXmlApplicationContext to get an EntityManager?
With Spring I can autowire a bean with the following property: @PersistenceContext(unitName=\"foo\") private EntityManager em;[详细]
2022-12-14 07:08 分类:问答How to implement update () method in DAO using EntityManager (JPA)?
What is the standard way to implement simple update? Example: we have User with phone number NNNNNN and now we want to set it to YYYYYY.[详细]
2022-12-12 13:06 分类:问答EclipseLink, EntityManager with two persistence units needed
I have one jar library A (or project in eclipse), which has it\'s own persistence unit (META-INF/persistence.xml) and some entity classes, and another project (B) using this one. In project B there is[详细]
2022-12-11 08:16 分类:问答Jboss Service / Managed Bean Question
I have a managed bean / service running inside of JBOSS.I then have a quartz job that will occasionally wake up and call a method of the managed bean.This method is sometimes long and drawn out, and s[详细]
2022-12-10 12:09 分类:问答