Annotation Type ProblemFactCollectionProperty
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface ProblemFactCollectionProperty
Specifies that a property (or a field) on aPlanningSolutionclass is aCollectionof problem facts. A problem fact must not change during solving (except through aProblemFactChangeevent).The constraints in a
ConstraintProviderrely on problem facts forConstraintFactory.from(Class). Alternatively, scoreDRL relies on problem facts too.Do not annotate
planning entitiesas problem facts: they are automatically available as facts forConstraintFactory.from(Class)or DRL.- See Also:
ProblemFactProperty