The code required for the persistence can be automatically added in a java project with //enh: commands. Then, the maven build will automatically process the file into adding the required code.
The list of available tags is:
//enh:field the most common tag. //enh:insert required for the script to add the code//enh:sco SCOType indicate that the class is SCOprotected float radius; //enh:field attr=Attributes.RADIUS getter setter // boolean open //enh:field type=bits(BASE_OPEN_MASK) attr=Attributes.OPEN getter setter
// enh:insert $TYPE.setSerializable(false); // enh:insert initType();