Revision 0a75fd54
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/org/hibernate/collection/internal/AbstractPersistentCollection.java | ||
---|---|---|
1478 | 1478 |
if (getOwner() != null && !initialized) { |
1479 | 1479 |
Object collectionType = null; |
1480 | 1480 |
Field field = null; |
1481 |
String fieldName = null; |
|
1481 | 1482 |
Class<?> clazz = null; |
1482 | 1483 |
String codePart = "1"; |
1483 | 1484 |
try { |
1484 | 1485 |
String role = getRole(); |
1485 |
String fieldName = role.substring(role.lastIndexOf(".") + 1);
|
|
1486 |
fieldName = role.substring(role.lastIndexOf(".") + 1); |
|
1486 | 1487 |
LOG.info("--> Remote Lazy Initializing Collection " + getRole() + " , owner : " + getOwner().getClass() + "/" + getKey() + " , field : " + fieldName); |
1487 | 1488 |
Object owner = getOwner(); |
1488 | 1489 |
CdmBase cdmBase; |
... | ... | |
1526 | 1527 |
} |
1527 | 1528 |
} catch (Exception ex) { |
1528 | 1529 |
String originalMessage = ex.getMessage(); |
1529 |
String message = originalMessage + ", clazz: " + (clazz == null? "" :clazz.getSimpleName())+ ", field: " + field + ", collectionType: " + collectionType + ", at code part: " + codePart; |
|
1530 |
String message = originalMessage + ", clazz: " + (clazz == null? "" :clazz.getSimpleName())+ ", field: " + field != null? field.getName(): fieldName + ", collectionType: " + collectionType + ", at code part: " + codePart;
|
|
1530 | 1531 |
throw new CdmEagerLoadingException(message); |
1531 | 1532 |
} |
1532 | 1533 |
} |
Also available in: Unified diff
change logger