User Tools

Site Tools


01_user_documentation:06_graph:07_persistence:99_code_enhancement

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
01_user_documentation:06_graph:07_persistence:99_code_enhancement [2025/10/13 09:40] – created gaetan01_user_documentation:06_graph:07_persistence:99_code_enhancement [2025/11/21 16:42] (current) gaetan
Line 1: Line 1:
 ====== Code enhancement ====== ====== Code enhancement ======
  
-The code required for the persistence can be automatically added in a java project with: +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 
 + 
 +<code java> 
 +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(); 
 + 
 +</code> 
01_user_documentation/06_graph/07_persistence/99_code_enhancement.1760341234.txt.gz · Last modified: 2025/10/13 09:40 by gaetan