ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh

JPA Queries

queries as well as of criteria query elements. It can be obtained either by the EntityManagerFactory's

SSL Configuration

" protocol) in the connection URL on the client side: EntityManagerFactory emf = Persistence

JPA Miscellaneous

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:

Entity Management Settings

of the shared level 2 cache that is managed by the EntityManagerFactory and shared by

Posting Sample Code

{     public static void main(String[] args) {         EntityManagerFactory emf =             Persistence

JPA Primary Key

is obtained from the EntityManagerFactory. The getIdentifier method takes one argument, a managed entity

Step 3: Add a Main Class

yet): EntityManagerFactory emf =  Persistence.createEntityManagerFactory

Step 3: Add a Main Class

yet): EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/db/p2.odb

Step 6: Set the Spring XML

.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="emf"/> </bean

Step 2: Define a JPA Entity Class

is adding a context listener class that will manage a JPA's EntityManagerFactory representing the ObjectDB database.

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