About transient

manual

JPA Entity Fields

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... classified into the following five groups: Transient fields Persistent fields Inverse (Mapped ... Version field The first three groups (transient, persistent and inverse fields) can be used in both entity classes ...

 
api-jpa

JPA Annotations for Fields

Reference (JavaDoc) of JPA 2 field annotations, including @Basic, @Embedded, @EmbeddedId, @Version, @Transient, @Enumerated, @MapKeyEnumerated, @Temporal and @MapKeyTemporal.... javax.persistence.Version javax.persistence.Transient Additional annotations (and enum) are designated for ...

 
forum_thread

@MappedSuperclass and @Transient not working as I expected

The problem could be my expectation, since I'm fairly inexperienced with JPA.  But here is the problem: The base class of my entity hierarchy is annotated as @MappedSuperclass, and one of its fields is annotated @Transient.  I expected that when I persist a subclass, no table would be created for the superclass, and the transient field would not appear in any table. The actual result is that there is a table for the superclass.  When I try to examine it in ObjectDB Explorer, it throws a NPE. ... as @MappedSuperclass, and one of its fields is annotated @Transient.  I expected that when I persist a subclass, no table would be created for the superclass, and the transient field would not appear in any table. The actual result is ...

 
forum_thread

@Transient

Hello, I have a persistent class which looks something like this: @Entity public class Test { private String string; private Date date; @Transient private boolean test; // getters/setters } When I persist the class the transient 'boolean test' is stored in the database, maybe I am doing it wrong but I expect... ; private Date date ;   @ Transient private boolean test ;   // ... } When I persist the class the transient 'boolean test' is stored in the database, maybe I am doing it wrong ... is not stored in the database because it's a (annotated) transient field? Regards, Will ...

 
api-jpa

javax.persistence.Transient

Specifies that the property or field is not persistent.(Annotation of JPA)

 
api-jdo

javax.jdo.PersistenceManager

PersistenceManager is the primary interface for JDO-aware application components.(Interface of JDO)

 
api-jdo

ObjectState.TRANSIENT

(Enum Constant of javax.jdo.ObjectState)

 
manual

[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... persistent classes that live only in memory) are called transient objects or transient instances . The JDO specification refers to persistent classes as ...

 
api-jdo

javax.jdo.spi.PersistenceCapable

A class that can be managed by a binary-compatible JDO implementation must implement this interface.(Interface of JDO)

 
manual

[ODB1] Chapter 6 - Persistent Objects

Shows how to store, retrieve, update and delete database objects. ... object, i.e. represents some database content, or a transient object, i.e. not related to any database. Storing Objects ... constructed by the new operator, it always starts as a transient object, regardless of its type. Instances of persistent classes can ...