The only example we have is with Python as you stated [1], in java you can try embedded entities [2] and see if that suits your need. However if you need java code samples, the best place to look would be Stackoverflow.com
[1] https://cloud.google.com/appengine/articles/modeling#one-to-many [2] https://cloud.google.com/appengine/docs/standard/java/datastore/entity-property-reference#embedded_entities On Friday, May 17, 2019 at 3:42:22 AM UTC-4, tonycavanagh1929 wrote: > > Hi. > > The only documentation, I have found on this subject is for Python only. > What I have done, where I have a one to many mapping Type to Fields. > I have created a List of Field Ids, which I store in my Type Entity and > then created, a Field Entities. > When I extract a Type, it puls out the list and them for each fieldId pull > out a field Entity. This allows me to do all CRUD on both Type and Field in > a simple manner. > > The only other way I can think of doing this is storing each field Entity > in a List as a Embedded Enity , and then storing the list in Type Entity. I > can see this become a very big object. as in reality an Object will have a > number of one to many , and many to many relationships. > > Are there other soultions I am missing. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/cbaed1e5-fd9f-437e-9c8c-c9003c2860a7%40googlegroups.com.
