To add a virtual attribute to an entity:
Open the eclipselink-orm.xml
mapping file.
In the JPA Structure view, right-click an entity and select Add Virtual Attribute. The Add Virtual Attribute dialog appears.
Complete the fields on the Add Virtual Attribute dialog and click OK. Dali adds the virtual attribute to the entity.
Related reference