Transient mapping

Use the Transient Mapping to specify a or field of the entity class that is not persistent.

To create a version mapping:

  1. In the JPA Structure view, select the field to map. The JPA Details view (for attributes) displays the properties for the selected.

  2. In the Map As field, select Transient.

Eclipse adds the following annotation to the field:

@Transient

 

Related task

Mapping an entity

 

Related reference

JPA Structure view
JPA Details view (for attributes)

 

Related concept

Understanding OR mappings
Understanding EJB 3.0 Java Persistence API