User Tools

Site Tools


01_user_documentation:06_graph:07_persistence:99_code_enhancement

This is an old revision of the document!


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
<code>
 
 
===== Insert =====
 
<code java>
// enh:insert $TYPE.setSerializable(false);
 
// enh:insert initType();
01_user_documentation/06_graph/07_persistence/99_code_enhancement.1763739677.txt.gz · Last modified: 2025/11/21 16:41 by gaetan