The round trip mode

 

Round trip mode

We are now going to have a look at the round trip functioning mode with regard to reverse operations.

 

Select the round trip functioning mode and generate the code for the "Bank" package.  Then, using the editor of your choice, edit the "BankAccount.java" file and add an attribute declaration, for example, "private int toto;".  Now compile the class.

 

If you now try to generate code in Objecteering, a warning message informs you that the file has been modified outside Objecteering.  If you continue, you will lose the work you have previously carried out.  You should, therefore, choose not to continue, and instead run the "Retrieve/Retrieve all" command for the class you have modified.  The result of this is that the model changes (for example, the new attribute is added to the model of the "BankAccount" class).