DATACMNS-380 - MappingContext.getPersistentPropertyPath(…) now throws MappingException.

This commit is contained in:
Oliver Gierke
2013-10-10 13:42:33 +02:00
parent 048394690f
commit 1b3d9ed2c4
2 changed files with 9 additions and 1 deletions

View File

@@ -223,7 +223,7 @@ public abstract class AbstractMappingContext<E extends MutablePersistentEntity<?
P persistentProperty = current.getPersistentProperty(segment);
if (persistentProperty == null) {
throw new IllegalArgumentException(String.format("No property %s found on %s!", segment, current.getName()));
throw new MappingException(String.format("No property %s found on %s!", segment, current.getName()));
}
result.add(persistentProperty);