Closed GoogleCodeExporter closed 9 years ago
Actually no, it is not considered an owned relation as far as the datastore is
concerned (as evidenced by what is pushed to the datastore). The problem is
solely at runtime in (legacy) GAE plugin code that has the unowned field as
being a "parent provider field" and the (owned) check gets confused when it
tries to have your (illegal) owned relation field also as the parent provider.
I say "illegal" (in the provided test) since you will otherwise (with SVN
trunk, fixing the parent provider message) get a message about
Error in meta-data for field
com.google.appengine.datanucleus.test.jdo.UnownedJDOOneToManyBiSideB.id :
Cannot have a primary key of type java.lang.Long and be a child object (owning
field is
"com.google.appengine.datanucleus.test.jdo.UnownedJDOOneToManyBiSideB.children")
Clearly having some objects of a type that are owned and some of that type that
are unowned will lead to problems of understanding in your model, but then
that's your choice.
SVN trunk fixes that "parent provider" problem.
Original comment by googleco...@yahoo.co.uk
on 19 Nov 2012 at 4:10
Original comment by googleco...@yahoo.co.uk
on 19 Nov 2012 at 4:11
Same problem.
Original comment by sara.sa...@gmail.com
on 19 Apr 2013 at 11:45
Original issue reported on code.google.com by
zhamdi.into
on 13 Nov 2012 at 3:38Attachments: