User Tools

Site Tools


01_user_documentation:06_graph:07_persistence:99_code_enhancement

Code enhancement

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:

  • Field: //enh:field the most common tag.
  • Insert: //enh:insert required for the script to add the code
  • SCO: //enh:sco SCOType indicate that the class is SCO

Field

  • getter
  • setter
  • getmethod=methname
  • setmethod=methname
  • attr=Attribute
  • type
  • quantity
  • edge
protected float radius;
//enh:field attr=Attributes.RADIUS getter setter
 
// boolean open
//enh:field type=bits(BASE_OPEN_MASK) attr=Attributes.OPEN getter setter

Insert

// enh:insert $TYPE.setSerializable(false);
 
// enh:insert initType();
01_user_documentation/06_graph/07_persistence/99_code_enhancement.txt · Last modified: 2025/11/21 16:42 by gaetan