# 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.

   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.

   Virtual Attribute

Related reference

- Add Virtual Attribute dialog