DATACMNS-1006 - SimpleTypeHolder now considers java.lang types simple ones.

This prevents AbstractMappingContext from adding them as entities.

Related tickets: DATAREST-1018.
This commit is contained in:
Oliver Gierke
2017-03-07 13:38:57 +01:00
parent 4552d49c5f
commit 642e92b2eb
2 changed files with 16 additions and 2 deletions

View File

@@ -123,6 +123,10 @@ public class SimpleTypeHolder {
return true;
}
if (type.getName().startsWith("java.lang")) {
return true;
}
for (Class<?> clazz : simpleTypes) {
if (clazz.isAssignableFrom(type)) {
simpleTypes.add(type);