ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
320

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
60

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
60

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
59

Step 2: Entity Class and Persistence Unit

/persistence_2_0.xsd"> <persistence-unit name="GuestbookPU" transaction-type="JTA"> <provider>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
59

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"/> </properties> </persistence-unit ... .persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity
35

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
8

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
8

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()
3

[ODB1] Chapter 3 - Persistent Classes

Persistent Classes are user defined classes whose instances can be stored in a database using JDO. Instances of these classes that represent objects in the database are called persistent objects or persistent instances. Objects that do not represent anything in the database (including instances
3

[ODB1] Chapter 6 - Persistent Objects

Persistent In JDO applications, every object in memory is either a persistent object, i.e. represents some ... , regardless of its type. Instances of persistent classes can become persistent later, as demonstrated by ... a simple transient object. Then it becomes persistent by an explicit call to the makePersistent

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support