if (getOwner() != null && !initialized) {
Object collectionType = null;
Field field = null;
+ Class<?> clazz = null;
try {
String role = getRole();
String fieldName = role.substring(role.lastIndexOf(".") + 1);
}
} catch (Exception ex) {
String originalMessage = ex.getMessage();
-
- String message = originalMessage + " - field: " + field + " - collectionType: " + collectionType.toString();
+ String message = originalMessage + "clazz: " + clazz.getSimpleName()+ "- field: " + field + " - collectionType: " + collectionType.toString();
throw new CdmEagerLoadingException(message);
}
}