clazz.getName()+" does not have an "+Entity.class.getName()+" annotation");
}
// parse entity date
String discriminatorName = entity.discriminatorName();
DiscriminatorType discriminatorType = entity.discriminatorType();
SubClass[] subClasses = entity.subClasses();
// create an object descriptor
ObjectDescriptor desc = new ObjectDescriptor();
desc.setType(clazz);
desc.setDiscriminatorName(discriminatorName);
desc.setDiscriminatorType(discriminatorType.toString());
// get BeanInfo
BeanInfo info = ReflectionUtil.getBeanInfo(clazz);
Map<Method, java.beans.PropertyDescriptor> methodMap
= new HashMap<Method, java.beans.PropertyDescriptor>();