About persistence unit

11-20 of 200Refresh
Manual
32

JPA Persistable Types

The term persistable types refers to data types that can be used in storing data in the database. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes ... can be stored in the database directly. Other persistable types can be embedded in entity classes as fields. In
Manual
30

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">      ...            
FAQ
29

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
Manual
28

Database Connection using JPA

of the createEntityManagerFactory method takes a map of persistence unit properties as a second parameter: Mappersistence unit. Any string that starts with objectdb: or ends with .odb or .objectdb is considered by ObjectDB to be a database url rather than as a persistence unit name. To use ObjectDB
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
26

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
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
Manual
24

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
JPA Doc
23

javax.persistence.spi.PersistenceProvider

". Returns: EntityManagerFactory for the persistence unit specified by the metadata Since: JPA 1.0 ... is to be created. Parameters: emName - the name of the persistence unit map - a Map of properties ... for the persistence unit, or null if the provider is not the right provider Since: JPA 1.0 ProviderUtil
JPA Doc
23

javax.persistence.EntityManagerFactory

factory for the persistence unit. When the application has finished using the entity manager ... an instance of Metamodel interface for access to the metamodel of the persistence unit. Return an instance of Metamodel interface for access to the metamodel of the persistence unit. Returns: Metamodel