If you rerun the UML-to-Java transformation or the UML-to-EJB transformation, the transformation processes the changes that you make to previously generated code depending on both the type of code element changed and the type of change.
Changed target code element | Type of change | Impact of rerunning the transformation |
---|---|---|
Class or interface | Add implementation or extension | Added implementation or extension is removed |
Class or interface | Remove implementation or extension | Previously generated implementation or extension is restored |
Enterprise bean class or interface | Added implementation or extension | Added implementation or extension is retained |
Enterprise bean class | Rename | New enterprise bean class name remains in the deployment descriptor |
Enterprise bean class or interface | Remove implementation or extension | Previously generated implementation or extension is removed |
Enterprise bean field | Move | Field is removed from the new location Field is restored to the previous location Field information remains in the deployment descriptor of the nesting parent in the new location |
Enterprise bean field | Rename | Previously generated field is restored Renamed field is retained |
Field | Move | Field is removed from the new location Field is restored to the previous location |
Field | Rename | Previously generated field is restored Renamed field is removed |
Import statement | Add | Import statement is retained |
Method | Modify return type | Previously generated return type is restored |
Method | Modify signature | Previously generated method and signature are restored Method with the new signature is removed |
Method | Move | Method is restored to the previous location Method in the new location is removed |
Method | Rename | Previously generated method is restored Renamed method is removed |
Nested class or interface | Rename | Previously generated class or interface is restored Renamed class or interface is removed |
Nesting class or interface | Rename | Previously generated Java™ file is restored File overwrite option of the UML-to-Java transformation determines whether or not the new Java file is deleted |
Qualifier | Modified | Previously generated qualifier is restored |