ObjectDB ObjectDB

Internal Website Search

11-20 of 200 resultsRefresh

Defining a JPA Entity Class

to serializable classes, which are marked as having the ability to be serialized. The Point Entity ... to the NotSerializableException that Java throws (unrelated to JPA), when trying to serialize non-serializable objects

ObjectDB Object Database Features

) Mapped super classes (@MappedSuperclass) Enum classes Serializable types Persistent System Types ... arrays. Any other serializable type. Lifecycle Events JPA callback methods and listener classes. JDO

Entity Management Settings

method for instances of serializable types that are non persistable otherwise (e.g. a user defined

Posting Sample Code

not contain a persistence unit, An entity or IdClass class should implement the java.io.Serializable interface).

Step 2: Entity Class and Persistence Unit

the new source file content with the following code: package guest; import java.io.Serializable ... ; import javax.persistence.Id; @Entity public class Guest implements Serializable { private

Step 2: Define a JPA Entity Class

.Serializable; import java.sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Guest implements Serializable

Step 2: Define a JPA Entity Class

code: package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence ... class Guest implements Serializable { private static final long serialVersionUID = 1L

[ODB1] Chapter 6 - Persistent Objects

the Serializable interface and it has a meaningful toString() method. The toString() method of object IDs in


javax.jdo Interface PersistenceManagerFactory Superinterfaces: Serializable ... -read snapshot serializable Parameters: level - the transaction isolation level Since: JDO 2.2 ... .TX_REPEATABLE_READ Constants.TX_SNAPSHOT Constants.TX_SERIALIZABLE void setTransactionType(String


See Also: PersistenceManagerFactory.supportedOptions() String PROPERTY_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE "javax.jdo.option.TransactionIsolationLevel.serializable" "javax.jdo.option.TransactionIsolationLevel.serializable ... .getIsolationLevel() String TX_SERIALIZABLE Transaction isolation level representing the requirement

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