Annotation Type PiggybackShadowVariable
Specifies that a bean property (or a field) is a custom shadow variable that is updated by another shadow variable's
 variable listener.
 
 It is specified on a getter of a java bean property (or a field) of a PlanningEntity class.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceWorkaround for annotation limitation inshadowEntityClass().
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionClass<?>ThePlanningEntityclass of the shadow variable with a variable listener.
- 
Element Details- 
shadowVariableNameString shadowVariableNameThe shadow variable name.- Returns:
- never null, a genuine or shadow variable name
 
 
- 
- 
- 
shadowEntityClassClass<?> shadowEntityClassThePlanningEntityclass of the shadow variable with a variable listener.Specified if the referenced shadow variable is on a different Classthan the class that uses this annotation.- Returns:
- PiggybackShadowVariable.NullEntityClasswhen it is null (workaround for annotation limitation). Defaults to the same- Classas the one that uses this annotation.
 - Default:
- org.optaplanner.core.api.domain.variable.PiggybackShadowVariable.NullEntityClass.class
 
 
-