Manual editing of the generated artifacts

You can manually edit generated Java™ code and protect any changes that you have made from being overwritten.

The generated Java code contains special Javadoc comments which are used to control merging of generated and manually edited code. Any class, method or field which has the tag @generated in its Javadoc comment will be overwritten when code is generated from the model.

If you have manually edited any of the generated Java code you must remove or modify the @generated tag, for example, changing it to @generated NOT, in order to protect your changes from being overwritten the next time code generation is run.

The code generator does not overwrite Javadoc comments.

Provided you modify the @generated tags, you can safely regenerate the code at any time without losing your changes.

Any generated files that are not Java will be overwritten when code is generated from the model. If you make manual changes to these files, you must back them up to avoid losing your changes.