processMethodAnnotations(descriptorPolicy);
processPropertyAnnotations(descriptorPolicy);
}
private void processEntityAnnotations(DescriptorPolicy descriptorPolicy) {
PlanningEntity entityAnnotation = entityClass.getAnnotation(PlanningEntity.class);
if (entityAnnotation == null) {
throw new IllegalStateException("The entityClass (" + entityClass
+ ") has been specified as a planning entity in the configuration," +
" but does not have a " + PlanningEntity.class.getSimpleName() + " annotation.");
}