About PersistenceUnitUtil

manual

JPA Primary Key

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... a specified managed entity object. For example: PersistenceUnitUtil javax.persistence.PersistenceUnitUtil JPA interface Utility interface between the ...

 
api-jpa

JPA Miscellaneous

Reference (JavaDoc) of JPA API, including PersistenceUtil, PersistenceUnitUtil, Cache, CacheRetrieveMode, CacheStoreMode, FlushModeType, LockModeType, PessimisticLockScope.... JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: ... javax.persistence.PersistenceUnitUtil The Cache interface and the ...

 
api-jpa

javax.persistence.PersistenceUnitUtil

Utility interface between the application and the persistence provider managing the persistence unit.(Interface of JPA)

 
api-jpa

getIdentifier(entity)

Return the id of the entity.(Method of javax.persistence.PersistenceUnitUtil)

 
forum_thread

EntityManager refresh problem

Dear Support, in the following code you can see a EntityManager.refresh() example. The example throws an assertion error with the following statement: Assert.assertEquals("entity 1", simpleEntity1.getFieldA()); In my opinion there should be no assertion error. I have tested the example with several objectdb versions (2.5.4, 2.5.6_06 and 2.5.7). Do you have an explanation for the assertion error? ... . Persistence ; import javax. persistence . PersistenceUnitUtil ;   import org. junit . Assert ; ...

 
api-jpa

isLoaded(entity)

Determine the load state of an entity belonging to the persistence unit.(Method of javax.persistence.PersistenceUnitUtil)

 
api-jpa

isLoaded(entity, attributeName)

Determine the load state of a given persistent attribute of an entity belonging to the persistence unit.(Method of javax.persistence.PersistenceUnitUtil)

 
api-jpa

getPersistenceUnitUtil()

Return interface providing access to utility methods for the persistence unit.(Method of javax.persistence.EntityManagerFactory)

 
api-jpa

javax.persistence.EntityManagerFactory

Interface used to interact with the entity manager factory for the persistence unit.(Interface of JPA)

 
api-jpa

javax.persistence.PersistenceUtil

Utility interface between the application and the persistence provider(s).(Interface of JPA)