Re: [hibernate-dev] [OGM] Element collections stored embedded in entity

2014-03-12 Thread Gunnar Morling
2014-03-12 14:48 GMT+01:00 Emmanuel Bernard : > There are two problems, > > I am not sure why it uses "nicknames" as the property name, I don't think > that's the actual default value in JPA, is it? > Default value in which way? > Otherwise, I agree with you, we could simplify it except when th

Re: [hibernate-dev] [OGM] Element collections stored embedded in entity

2014-03-12 Thread Emmanuel Bernard
There are two problems, I am not sure why it uses "nicknames" as the property name, I don't think that's the actual default value in JPA, is it? Otherwise, I agree with you, we could simplify it except when the collection is keyed or indexed. At this stage you need to store the key or the index

[hibernate-dev] [OGM] Element collections stored embedded in entity

2014-03-12 Thread Gunnar Morling
Hi, I just did some testing around @ElementCollection using MongoDB. A collection of a basic type results in the following persistent format of the embedding entity: { "_id": "17457a47-abfc-4fb7-955e-17acb0b49808", "nicknames": [ { "nicknames": "idrA" },