The doc says

"A relationship between persistent objects can be described as owned, where
one of the objects cannot exist without the other, or unowned, where both
objects can exist independently of their relationship with one another"

The confusion is how to identify weather it is owned or unowned

Lets take an example

*- Each user can have zero or more roles assigned to it - *

That mean user can have or can not have a role assigned to it. so,
user.roles collection might be empty. Does that mean it is an owned
relationship

*- Each user can have one or more profile*
- user has atleast one profile, profile can not exist without user. Does
that mean it is owned relationship ?

In simplest word

*- Zero or more  = unowned relationship*
*- Atleast one or more = owned relationship*

is it true ?

- Can we have owned relationship with *Zero or more* child
- Can we have owned relationship with *CASCADE = NONE*


-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to