ObjectDB ObjectDB

Internal Website Search

1-10 of 98 resultsRefresh

JPA Entity Fields

superclasses) can be classified into the following five groups: Transient fields Persistent fields Inverse (Mapped By) fields Primary key (ID) fields Version field The first three groups (transient, persistent ... are discussed in the Primary Key section. Transient Fields Transient entity fields are fields


javax.persistence Annotation Transient Target: Fields (including property get methods) Specifies that the property or field is not persistent. It is used to annotate a property or field of an entity ... { @Id int id; @Transient User currentUser; ... } Since: JPA 1.0 This annotation is a marker annotation (with no elements).

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

encounter ObjectDB enhancement errors: private boolean loaded = false; @Transient ... : private boolean loaded = false; @Transient @Override public boolean getLoaded ... () { ... } ... public Integer getBalance() { ... } ... @Transient // because status depends


Static Field javax.jdo.Constants String OPTION_TRANSACTIONAL_TRANSIENT "javax.jdo.option.TransientTransactional" Since: JDO 2.1 See Also: PersistenceManagerFactory.supportedOptions()


Enum Constant javax.jdo.ObjectState TRANSIENT_DIRTY Since: JDO 1.0


Enum Constant javax.jdo.ObjectState TRANSIENT_CLEAN Since: JDO 1.0


Enum Constant javax.jdo.ObjectState TRANSIENT Since: JDO 1.0

[ODB1] Chapter 6 - Persistent Objects

database content, or a transient object, i.e. not related to any database. Storing Objects Explicitly When a new object is constructed by the new operator, it always starts as a transient object ... a simple transient object. Then it becomes persistent by an explicit call to the makePersistent

[ODB1] Chapter 3 - Persistent Classes

of persistent classes that live only in memory) are called transient objects or transient instances ... because persistent classes have some overhead. Classes that are not declared persistent are called transient classes and can have only transient objects as instances. To become persistent, a class has to: be declared

[ODB1] Chapter 4 - JDO Metadata

, the class is persistent, and if not, the class is transient. Metadata for class a.b.X (a.b is the package ... by field f0, changes a field that is transient by default to persistent. For example, a field with a transient modifier in the Java source (useful for defining fields as transient in serialization

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