First page Back Continue Last page Graphics
- They do not map to the database column.
- They are value holders to display the calculated data.
- After you add a transient attribute to the entity object, to make it a calculated attribute, you can define the calculation by one of the following methods:
- Defining a Groovy or regular expression
- Writing Java code and using a SQL expression:
- Enable a custom entity object class on the Java page of the Entity Object Editor, choosing to generate accessor methods.
- Write Java code inside the accessor method for the transient attribute to return the calculated value.
In addition to having attributes that map to columns in an underlying table, your entity objects can include transient attributes that are value holders or that display values calculated in Java. A simple example is of adding a FullName transient attribute to the Users entity object that calculates its value by concatenating the values of the FirstName and LastName attributes.