Transient (attribute of property)
From JRapid
transient is an attribute of property.
Contents |
Description
The transient attribute is used for creating properties that are not persistent.
This means transient properties do not generate a column in the database table. The do generate the necessary fields on the form and are made available in the entity's class through getters and setters.
Transient properties are not included in the Hibernate mapping files (aka HBM) generated for the entity.
Usage
<property name = NAME label = LABEL transient="transient" />
Example
Transient properties are useful to show informative fields (like dynamicvalues or calculated values) in an entity's form that you don't want to store in the database. For example, showing the average of a student's grades.
<property name="avg" label="Average" type="double" transient="transient" />
