>How can it possibly identify it as an unowned relationship? You have
>references to real objects so its a real (i.e "owned") relationship.
>You have no references to keys (or object identities).

Aah, this is the point.. I am talking about.

- The example I gave earlier is an unowned relationship ryt?
*"Role can exist without user, user can exist without role, but user can
have one or more roles"*

>  You have references to real objects so its a real (i.e "owned")
relationship.

If I store real references instead of Keys' does it become *Owned*, and If I
store keys instead of *references* does it become *unowned* !!!.

Then why would I take the trouble of unowned, I will store real references
for all the relations, and all is well.

- The question is, *When I must use Keys (unowned) instead of references,
otherwise datastore will not support/handle it and through exception or
whatever.*

The answer to above question will implicitly explain "What is unowned
relationship" and what is "unowned relationship is not supported"*

Thanks
SN

On Sat, May 1, 2010 at 9:46 PM, datanucleus <andy_jeffer...@yahoo.com>wrote:

> > *Google says "unowned relationship is not supported"*
> > What does it mean? *How datastore  identify that *it is unowned
> relationship**?
>
> No idea. It's a Google special. It's not part of any spec so it's for
> them to answer.
>
> > In above example, If I implement it as normal relationship, as shown in
> > below code, What will happen?.
> > - Can datastore identify it as unowned relationship and through error?
>
> How can it possibly identify it as an unowned relationship? You have
> references to real objects so its a real (i.e "owned") relationship.
> You have no references to keys (or object identities).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Sudhir Ramanandi
http://www.ramanandi.org

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to