That intersection of types is what was making me nervous.  :)


On Wed, Oct 16, 2013 at 3:59 PM, Christian Trimble <notifications@github.com
> wrote:

> In morphia/src/main/java/org/mongodb/morphia/mapping/EmbeddedMapper.java:
>
> > @@ -142,7 +142,7 @@ public void fromDBObject(final DBObject dbObject, final MappedField mf, final Ob
> >
> >            //run converters
> >            if (isDBObject && (mapper.converters.hasDbObjectConverter(mf) || mapper.converters.hasDbObjectConverter(mf.getType()))) {
>
> I am having some trouble with the value of isDBObject and complex types
> that represent arrays. Currently, this is defined on line 141 and is any
> object that is a DBObject, but not a BasicDBList. If I convert an object
> into a BasicDBList, then I cannot reload it and the conversion eventually
> fails when looking for the "className" attribute.
>
> I will improve this pull request to handle this condition and comment when
> I have it working.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mongodb/morphia/pull/539/files#r7013867>
> .
>