Originally posted by Sandeep Vaid:
So Do you mean that we can have component(composition) when there is only one-to-one relationship. (User->Address)
and where there is one -> many relationship we need to use the collection of value-types instances.
Is my understanding correct ?
Mark, I know what you have explained. I think my original question didn't conveyed the meaning properly. I was talking in terms of Object Oriented terms only(and not database). Let me put my question in other words :
In OO, when we have 1-1 relationship between entities + one entity (User) is responsible for life-cycle of the other entity (Address) + The other entity(Address) is not shared, then this is the case of composition(component)
BUT
where there is one-to-many relationship between entities (e.q Item - Images) we can't use composition here (as entities don't have 1-1 relationship here), we need to use the collection of value-types instances.