BigHenry - 2011-11-17

I've come across this too -- as the Hibernate proxy is not unwrapped, the identity check for previously mapped beans fails, so Dozer fails to maintain referential integrity.

I've patched org.dozer.MappingProcessor locally to fix the issue:

private Object mapOrRecurseObject(Object srcObj, Object srcFieldValue, Class<?> destFieldType, FieldMap fieldMap, Object destObj) {
Object srcFieldValue = MappingUtils.deProxy(srcFieldValue);
// ...
}

But obviously having my own branch isn't ideal.

Could this fix (or another if you deem this incorrect) be added to the next release please?