org.drools.planner.api.domain.variable
Annotation Type DependentPlanningVariable


Deprecated.

@Target(value=METHOD)
@Retention(value=RUNTIME)
@Deprecated
public @interface DependentPlanningVariable

Specifies that a bean property should be kept up-to-date by Drools Planner when the master PlanningVariable changes.

It is specified on a getter of a java bean property of a PlanningEntity class.

See Also:
PlanningVariable

Required Element Summary
 String master
          Deprecated. The property on this class that is the master variable.
 
Optional Element Summary
 String mappedBy
          Deprecated. The property on the opposite class that owns the relationship.
 

Element Detail

master

public abstract String master
Deprecated. 
The property on this class that is the master variable. When the master variable changes, this variable must to be kept up-to-date.

When Drools Planner changes the master variable, it will automatically update this variable. However, when other code changes the master variable, it must also update this variable.

Returns:
never null

mappedBy

public abstract String mappedBy
Deprecated. 
The property on the opposite class that owns the relationship. The opposite class is the class returned by this property.

When the relationship is bidirectional, it is required.

Often, it holds the same value as master(), especially when the opposite class is the same class as this class.

Returns:
"" if unused
Default:
""


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.