Issue 460 in morphia: toDBObject result incompatible with fromDBObject

3 views
Skip to first unread message

mor...@googlecode.com

unread,
Jun 4, 2013, 6:03:22 AM6/4/13
to morphia...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Low

New issue 460 by had...@gmail.com: toDBObject result incompatible with
fromDBObject
http://code.google.com/p/morphia/issues/detail?id=460

What version are you using? (Morphia/Driver/MongoDB)
0.99.1

the result of toDBObject still contains basic java collections which are
created by the embeddedmapper online 101
where it chooses between calling
mapr.toMongoObject(entryVal, true);
and calling
mapr.toDBObject(entryVal, involvedObjects);


calling tomongoobject by its description converts the value to a mongo
compatible java object which can result in arraylist etc...

so when calling fromDBObject on the result we get an exception because
fromdbobject expects all fields to be of type DBObject.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

mor...@googlecode.com

unread,
Jul 10, 2013, 5:52:52 AM7/10/13
to morphia...@googlegroups.com

Comment #1 on issue 460 by had...@gmail.com: toDBObject result incompatible
with fromDBObject
http://code.google.com/p/morphia/issues/detail?id=460

i've managed to solve the issue by converting all creation of new array in
embeddedmapper to basicdblist
Reply all
Reply to author
Forward
0 new messages