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:
Thomas Darimont
2013-07-16 12:00:50 +02:00
committed by Oliver Gierke
parent 634789c3b7
commit 2afb570729
2 changed files with 22 additions and 9 deletions

View File

@@ -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());
}
/*