DATACMNS-345 - Use the actual type of the persistent property.
Changed getPersistentEntity(PersistentProperty<?>) to return the actual type of the persistent property in order to deal with collection and map types transparently. Original pull request: #31.
This commit is contained in:
committed by
Oliver Gierke
parent
634789c3b7
commit
2afb570729
@@ -178,12 +178,8 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
read.lock();
|
||||
return persistentEntities.get(persistentProperty.getTypeInformation());
|
||||
} finally {
|
||||
read.unlock();
|
||||
}
|
||||
TypeInformation<?> typeInfo = persistentProperty.getTypeInformation();
|
||||
return getPersistentEntity(typeInfo.getActualType());
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user