You can specify that the UML-to-EJB transformation generate a field
with getter and setter methods for each UML property. If the isLeaf (final)
or isReadOnly property is set to true, no setter is generated. If the isDerived
property is set to true, the setter implementation is empty.
Before you apply the UML-to-EJB transformation, you should read the
information that is available at . From the
Transformations/Configurations list,
click
UML to EJB, and on the
Transformation
Description page, select
View Transformation Documentation.
You
must be in the Modeling perspective.
Generating getter and setter methods with the UML-to-EJB transformation:
- Click .
- In the Configure Transformations window, from
the Transformations/Configurations list, select a transformation
configuration.
- Click the Advanced tab.
- On the Advanced page, select the Generate
getters and setters check box.
- Click Apply.
- Click Close.