About persistence unit

1-10 of 200Refresh
Manual
330

JPA Persistence Unit

A JPA Persistence Unit is a logical grouping of user defined persistable classes (entity classes, embeddable classes and mapped superclasses) with related settings. Defining a persistence unit is optional when using ObjectDB, but required by JPA. persistence.xml Persistence units are defined in
Tutorial
314

Step 2: Entity Class and Persistence Unit

with a default persistence unit (that will be configured later). If the Finish button is disabled ... + ")"; } } A default JPA persistence unit (with default settings) was generated in a persistence.xml ... /xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="GuestbookPU" transaction-type
Tutorial
314

Step 2: Entity Class and Persistence Unit

with a default persistence unit (that will be configured later). If the Finish button is disabled ... + ")"; } } A default JPA persistence unit (with default settings) was generated in a persistence.xml file ... .com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="GuestbookPU" transaction
Tutorial
309

Step 2: Entity Class and Persistence Unit

/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit ... ="javax.persistence.jdbc.password" value="admin"/> persistence-unit ... .persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity
Tutorial
309

Step 2: Entity Class and Persistence Unit

/persistence_2_0.xsd"> <persistence-unit name="GuestbookPU" transaction-type="JTA"> com ... > persistence-unit> persistence> Now ObjectDB should be used as a JPA provider with the specified ... .Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax
JDO Doc
90

Constants.PMF_ATTRIBUTE_PERSISTENCE_UNIT_NAME

Static Field javax.jdo.Constants String PMF_ATTRIBUTE_PERSISTENCE_UNIT_NAME The name of the persistence manager factory element's "persistence-unit-name" attribute. Since: JDO 2.1
JDO Doc
89

Constants.PROPERTY_PERSISTENCE_UNIT_NAME

Static Field javax.jdo.Constants String PROPERTY_PERSISTENCE_UNIT_NAME "javax.jdo.option.PersistenceUnitName" Since: JDO 2.1 See Also: PersistenceManagerFactory.getPersistenceUnitName()
Manual
48

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

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
FAQ
44

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