@ElementCollection()
public java.util.List<Context> getContext()
@Embeddable
public class Context implements java.io.Externalizable {
private Type _type=Type.Conversation;
privateString _value=null;
.....
// suitable accessors and modifiers for these two fields
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
@ElementCollection() public java.util.List<Context> getContext()Leads to
{ "_id" : { "unitId" : "au1", "unitIndex" : 0 }, "context" : [ { "context.collection&&element.type" : 2, "context.collection&&element.value" : "corr1" }, { "context.collection&&element.type" : 0, "context.collection&&element.value" : "12345" } ], "properties" : [ { "name" : "customer", "value" : "Fred" }, { "name" : "trader", "value" : "Joe" } ] }collection&&element should not be there.