Home » Search

About PersistenceContext

21-30 of 39Refresh
Forum
3

Problem undeploying Glassfish3.1.1 web application cleanly

objectdb-2.3.7_18 When I undeploy a Glassfish3.1.1 web application when using @PersistenceContext ... (which also uses @PersistenceContext EntityManager injection)? > Is it possible to get this exception with the simple tutorial GuestBook example (which also uses @PersistenceContext EntityManager
Issue
3

An entityManager.flush() with many entities is not possible

  The following exception occures if we call entityManager.flush() where the corresponding JPA PersistenceContext has many entities and relations. What is the reason for the exception? entityManager ... PersistenceContext is too complex.  [ObjectDB 2.6.0_01] javax.persistence.PersistenceException Failed
Forum
3

Null enums and IS (NOT) NULL: NullPointerException

{ @Resource private UserTransaction transaction; @PersistenceContext(unitName = "my-pu ... { @PersistenceContext(unitName = "my-pu") private EntityManager entityManager; @EJB private TestManager
Issue
3

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

All_ { @PersistenceContext(type = PersistenceContextType.EXTENDED)//! protected EntityManager ... }. */ final static boolean DO_FORCE_COMMIT_AFTER_BUILD = false; @PersistenceContext(type
Issue
3

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

TestQuery {     @PersistenceContext     private EntityManager em;     public ListPersistenceContext(type=PersistenceContextType.EXTENDED) // change 2
Forum
3

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

>   Persistence code @PersistenceContext(unitName = "testPU") private EntityManager em; @PersistenceContext(unitName = "mysqlPU") private EntityManager em1; @Transactional(readOnly = false) public
Forum
3

Update is ignored by ObjectDB

public class SMDB { @PersistenceContext(unitName = "SM") private EntityManager smdb; @PersistenceContext(unitName = "SMShop") private EntityManager shopdb; ... public Order fulfilOrder(Long
Issue
2

com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null:

public class ExtGreenStarOfficeProjectBuilder extends ResettableBuilder { @PersistenceContext
Forum
2

Externalising persistence.xml properties in Glassfish?

can use @PersistenceContext(unitName=PERSISTANCEUNIT) private EntityManager em; This way I
Forum
2

How force always recreate database on redeployment.

am obtaining an EntityManager from the container using @PersistenceContext. I can then obtain the related