Home » Search

About persistence unit

11-20 of 200Refresh
FAQ
39

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java ... . Using plain old Java objects (POJO) to represent persistent data can significantly simplify database ... Persistence API (JPA). By interacting with ObjectDB using standard JPA you can keep your application
JPA Doc
33

javax.persistence.Persistence

(String persistenceUnitName) Create and return an EntityManagerFactory for the named persistence unit. Create and return an EntityManagerFactory for the named persistence unit. Parameters: persistenceUnitName - the name of the persistence unit Returns: the factory that creates EntityManagers configured
JPA Doc
32

javax.persistence.spi.PersistenceUnitInfo

are only transformed once within the same classloading scope, regardless of how many persistence units ... the root of the persistence unit that have not been explicitly listed are to be included in the set of managed classes. Returns whether classes in the root of the persistence unit that have not
Manual
31

Shared (L2) Entity Cache

. Per persistence unit in the persistence.xml file. Per entity class - using annotations. ObjectDB ... has to be specified. Persistence Unit Settings The shared cache can also be enabled or disabled using a persistence unit property:    <persistence-unit name="my-pu">      ...            
Manual
27

Chapter 2 - JPA Entity Classes

Explains how to define and use JPA entity classes and other JPA persistable types.
Manual
27

JPA Lifecycle Events

/persistence/orm_1_0.xsd" version="1.0"> <persistence-unit-metadata> <persistence-unit-defaults ... -unit-defaults> persistence-unit-metadata> The mapping file ... explicitly in the persistence unit definition (in persistence.xml). Default listeners are applied by
JPA Doc
27

javax.persistence.EntityManager

instance is defined by a persistence unit. A persistence unit defines the set of all classes ... of the persistence unit. Return an instance of Metamodel interface for access to the metamodel of the persistence unit. Returns: Metamodel instance Throws: IllegalStateException - if the entity manager
Manual
25

JPA / JDO Class Enhancer

> :  persistence unit name -s :  include sub directories in search -d    :  output path ... with the name of a persistence unit to enhance all the managed classes that are defined in that persistence ... of compiled classes after compilation. Enhancement is mainly for user-defined persistable classes
Forum
25

Exception while accessing the Persistence unit ...?

for the Unit Name)   Thanks, Allen   Maybe the persistence.xml file has an error or maybe it is located in the wrong directory, because it seems that the persistence unit is unknown. Try repeating ... .com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="GuestbookPU" transaction
JPA Doc
25

javax.persistence.PersistenceUnitUtil

between the application and the persistence provider managing the persistence unit. The methods ... for this persistence unit or on new entity instances. Since: JPA 2.0 Object getIdentifier(Object ... ) Determine the load state of an entity belonging to the persistence unit. Determine the load state