if (propertyDescriptor.getWriteMethod() == null) {
throw new IllegalStateException("The planningEntityClass (" + planningEntityClass
+ ") has a DependentPlanningVariable annotated property (" + propertyDescriptor.getName()
+ ") that should have a setter.");
}
DependentPlanningVariableDescriptor dependentPlanningVariableDescriptor
= new DependentPlanningVariableDescriptor(this, propertyDescriptor);
dependentPlanningVariableDescriptorMap.put(propertyDescriptor.getName(),
dependentPlanningVariableDescriptor);
dependentPlanningVariableDescriptor.processAnnotations();
}
}
if (noPlanningVariableAnnotation) {
throw new IllegalStateException("The planningEntityClass (" + planningEntityClass
+ ") should have at least 1 getter with a PlanningVariable annotation.");