Skip Headers
Dali Java Persistence Tools User Guide
Release 3.2
Release 3.2
  PDF
PDF
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Adding persistence to a class
 
Next
Managing the persistence.xml file
 

Adding virtual attributes

To add a virtual attribute to an entity:

  1. Open the eclipselink-orm.xml mapping file.

  2. In the JPA Structure view, right-click an entity and select Add Virtual Attribute. The Add Virtual Attribute dialog appears.

    Figure 3-24 Add Virtual Attribute Dialog


  3. Complete the fields on the Add Virtual Attribute dialog and click OK. Dali adds the virtual attribute to the entity.

    Figure 3-25 Virtual Attribute


Related reference