-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Multiple embedded objects not supported yet"? #28
Comments
That only impact the case when you want to use Model.edit() method, e.g. load yml data file or edit current object using params coming from http form. You can still construct a complicated model structure if you use APIs. |
This is something we need badly. We're not able to load MorphiaFixtures that contain lists of embedded documents, which happens in almost every one of our collections. We may try to fix it this week if you think it's something simple. Right now, our workaround is to instantiate a bunch of embedded documents programmatically within setUp(). It's pretty ugly. |
Does JPA embedded object list supported now? |
Looks like it does in 1.2.4: |
Unfortunately, I do not believe this is the case. I have been playing with Green, if you could provide any insight on this, it would be a big help. On Mon, Jan 9, 2012 at 9:48 PM, chrislambert <
|
It's admitted that binding refactory work is not mature in play 1.2.4, and On Tue, Jan 10, 2012 at 9:57 PM, bolinfest <
|
Well, unfortunately, we really need this functionality now, so I guess On Tue, Jan 10, 2012 at 4:15 AM, Green Luo <
|
Just as a side note, I found that a Gson Type binder that builds out an embedded object that can be saved with PlayMorphia. It goes something like this:
If you are dealing with JSON data to begin with this approach can work - if not, won't help. |
Hello since v1.2.7 now is using play 1.2.4 binding mechanism, can anyone of you check if this issue get fixed on 1.2.7+ ? |
Edit - Sorry, I wasn't using MorphiaFixtures As of 1.2.9a I am unable to load in a yaml file that has list of referenced objects. Exception: com.google.code.morphia.mapping.MappingException: Error mapping field:.... |
Are there any updates regarding this issue ? |
I saw following line in Model source code:
Logger.debug("multiple embedded objects not supported yet");
Could you plz elaborate it more? what does it exactly imply to the model design?
Thanks.
BRs,
Yu
The text was updated successfully, but these errors were encountered: