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
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
I\'m getting this error from my EntityManager when I call the refresh function. public void saveProduct(Product product) {
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
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
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:
With Spring I can autowire a bean with the following property: @PersistenceContext(unitName=\"foo\") private EntityManager em;
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.
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
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