ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
48

Step 3: Add a Context Listener Class

of the new source file with the following code: package guest; import javax.persistence.*; import ... = Persistence.createEntityManagerFactory("$objectdb/db/guest.odb"); e ... instance and stores it as an application scope attribute in the servlet context - when the web application
48

Step 3: Add a Context Listener Class

: package guest; import javax.persistence.*; import javax.servlet.*; @WebListener public class ... ("guest.*"); EntityManagerFactory emf = Persistence.createEntityManagerFactory ... attribute in the servlet context - when the web application starts (contextInitialized). Retrieves
35

javax.persistence.EntityManager

javax.persistence Interface EntityManager Interface used to interact with the persistence context. An EntityManager instance is associated with a persistence context. A persistence context is a set ... . Within the persistence context, the entity instances and their lifecycle are managed
35

Working with JPA Entity Objects

. The Persistence Context The persistence context is the collection of all the managed objects of an EntityManager. If an entity object that has to be retrieved already exists in the persistence context ... refresh, which always requires accessing the database). The main role of the persistence context
34

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
4

[ODB1] Chapter 9 - ObjectDB Explorer

is open. The "Class" window shows all the persistent classes in the database. You can select a class from the list of classes at the top of this window and see all its persistent fields ... a persistent field, and the content of a cell is the value of a single field in a single database object
3

getPersistenceManagerFactory(jndiLocation, context)

jndiLocation, Context context ) Returns a PersistenceManagerFactory at the JNDI location specified by jndiLocation in the context context. If context is null, new InitialContext() will be used. This method is equivalent to invoking getPersistenceManagerFactory(String,Context,ClassLoader) with Thread
3

getPersistenceManagerFactory(jndiLocation, context, loader)

jndiLocation, Context context, ClassLoader loader ) Returns a PersistenceManagerFactory at the JNDI location specified by jndiLocation in the context context. If context is null, new InitialContext ... the PersistenceManagerFactory context - the context in which to find the named PersistenceManagerFactory loader
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