for (Class<?> clazz : classesToInspect) {
if (alreadyInspectedClasses.contains(clazz)) {
continue;
}
if (hasTypeFieldAnnotation(clazz, Id.class) || hasTypeFieldAnnotation(clazz, javax.persistence.Id.class)) {
ve.add(new ConstraintViolation(Level.FATAL, mc, this.getClass(),
"You cannot use @Id on any field of an Embedded/Property object"));
}
alreadyInspectedClasses.add(clazz);
Set<Class<?>> extraClassesToInspect = new HashSet<Class<?>>();
for (Field field : ReflectionUtils.getDeclaredAndInheritedFields(clazz, true)) {