private ClassDescriptor buildClassDescriptor(MappingDescriptor mappingDescriptor, Class clazz) { ClassDescriptor classDescriptor = null; Node nodeAnnotation = (Node) clazz.getAnnotation(Node.class); if (nodeAnnotation != null) { classDescriptor = createClassDescriptor(clazz, nodeAnnotation); addImplementDescriptor(classDescriptor, clazz); addAttributeDescriptors(mappingDescriptor, classDescriptor, clazz); return classDescriptor; } else { throw new InitMapperException("The annotation @Node is not defined for the persistent class " + clazz.getName()); } }
private ClassDescriptor buildClassDescriptor(MappingDescriptor mappingDescriptor, Class clazz) { ClassDescriptor classDescriptor = null; Node nodeAnnotation = (Node) clazz.getAnnotation(Node.class); if (nodeAnnotation != null) { classDescriptor = createClassDescriptor(clazz, nodeAnnotation); addImplementDescriptor(classDescriptor, clazz); addAttributeDescriptors(mappingDescriptor, classDescriptor, clazz); return classDescriptor; } else { throw new InitMapperException("The annotation @Node is not defined for the persistent class " + clazz.getName()); } }