Class EntityDescriptorValidator
java.lang.Object
ai.timefold.solver.core.impl.domain.entity.descriptor.EntityDescriptorValidator
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertNotMixedInheritance(Class<?> entityClass, List<Class<?>> declaredInheritedEntityClassList) Mixed inheritance is not permitted.static voidassertSingleInheritance(Class<?> entityClass, List<Class<?>> declaredInheritedEntityClassList) static voidassertValidPlanningVariables(Class<?> clazz) If a class declares any variable (genuine or shadow), it must be annotated as an entity, even if a supertype already has the annotation.static booleanisEntityClass(Class<?> clazz)
-
Method Details
-
assertNotMixedInheritance
public static void assertNotMixedInheritance(Class<?> entityClass, List<Class<?>> declaredInheritedEntityClassList) Mixed inheritance is not permitted. Therefore, inheritance must consist only of classes or only of interfaces. -
assertSingleInheritance
-
assertValidPlanningVariables
If a class declares any variable (genuine or shadow), it must be annotated as an entity, even if a supertype already has the annotation. -
isEntityClass
-