package net.ceos.project.poi.annotated.definition;

/**
 * This will define the cascade type when reading one attribute of the object. <br>
 * 
 * {@value = CascadeType.CASCADE_BASE } Will propagate the writing only at the main objects. <br>
 * {@value = CascadeType.CASCADE_LEVEL_ONE } Will propagate the writing at level one of the objects at the any collection. <br>
 * {@value = CascadeType.CASCADE_LEVEL_TWO } Will propagate the writing at level two at any collection of the child objects. <br>
 * {@value = CascadeType.CASCADE_FULL } Will propagate the writing fully as objects exists at any collection. <br>
 * 
 * @version 1.0
 * @author Carlos CRISTO ABREU
 */
public enum CascadeType {

	CASCADE_BASE(0), CASCADE_LEVEL_ONE(1), CASCADE_LEVEL_TWO(2), CASCADE_FULL(3);

	private int code;

	private CascadeType(int s) {
		code = s;
	}

	public int getCode() {
		return code;
	}
}

@@ -690,16 +690,46 @@
 Type %7B%0A%0A
+%09// TODO review cascade level%0A
 %09CASCADE
@@ -734,17 +734,17 @@
 DE_BASE(
-0
+2
 ), CASCA
@@ -756,17 +756,17 @@
 VEL_ONE(
-1
+4
 ), CASCA
@@ -779,16 +779,17 @@
 EL_TWO(2
+0
 ), CASCA
@@ -800,9 +800,11 @@
 ULL(
-3
+100
 );%0A%0A

Upgrade levels