Class EntityDescriptorValidator

java.lang.Object
ai.timefold.solver.core.impl.domain.entity.descriptor.EntityDescriptorValidator

public class EntityDescriptorValidator extends Object
  • 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

      public static void assertSingleInheritance(Class<?> entityClass, List<Class<?>> declaredInheritedEntityClassList)
    • assertValidPlanningVariables

      public static void assertValidPlanningVariables(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.
    • isEntityClass

      public static boolean isEntityClass(Class<?> clazz)