mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#842 - For @DbJson map the type Map<String, ?> (using the wildcard) ... the same as Map<String, Object>
This commit is contained in:
@@ -484,7 +484,7 @@ public final class DefaultTypeManager implements TypeManager, KnownImmutable {
|
||||
*/
|
||||
private boolean isMapValueTypeObject(Type genericType) {
|
||||
Type[] typeArgs = ((ParameterizedType) genericType).getActualTypeArguments();
|
||||
return Object.class.equals(typeArgs[1]);
|
||||
return Object.class.equals(typeArgs[1]) || "?".equals(typeArgs[1].toString());
|
||||
}
|
||||
|
||||
private ScalarType<?> createJsonObjectMapperType(Class<?> type, Type genericType, int dbType, DocPropertyType docType) {
|
||||
|
||||
Reference in New Issue
Block a user