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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user