|
|
|
@ -300,7 +300,7 @@ public class MappingMongoConverter implements MongoConverter, ApplicationContext |
|
|
|
|
|
|
|
|
|
|
|
if (null == entity) { |
|
|
|
if (null == entity) { |
|
|
|
// Must not have explictly added this entity yet
|
|
|
|
// Must not have explictly added this entity yet
|
|
|
|
entity = mappingContext.addPersistentEntity(obj.getClass()); |
|
|
|
entity = mappingContext.addPersistentEntity(obj.getClass()); |
|
|
|
if (null == entity) { |
|
|
|
if (null == entity) { |
|
|
|
// We can't map this entity for some reason
|
|
|
|
// We can't map this entity for some reason
|
|
|
|
throw new MappingException("Unable to map entity " + obj); |
|
|
|
throw new MappingException("Unable to map entity " + obj); |
|
|
|
@ -419,6 +419,8 @@ public class MappingMongoConverter implements MongoConverter, ApplicationContext |
|
|
|
DBRef dbRef = createDBRef(propObjItem, dbref); |
|
|
|
DBRef dbRef = createDBRef(propObjItem, dbref); |
|
|
|
dbList.add(dbRef); |
|
|
|
dbList.add(dbRef); |
|
|
|
} else if (type.isArray() && MappingBeanHelper.isSimpleType(type.getComponentType())) { |
|
|
|
} else if (type.isArray() && MappingBeanHelper.isSimpleType(type.getComponentType())) { |
|
|
|
|
|
|
|
dbList.add(propObjItem); |
|
|
|
|
|
|
|
} else if (MappingBeanHelper.isSimpleType(propObjItem.getClass())) { |
|
|
|
dbList.add(propObjItem); |
|
|
|
dbList.add(propObjItem); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
BasicDBObject propDbObj = new BasicDBObject(); |
|
|
|
BasicDBObject propDbObj = new BasicDBObject(); |
|
|
|
|