Page 1 of 1

Relationships and their inverses...

Posted: Fri Aug 07, 2009 11:50 am
by ConvertFromOldNGs
by JADE Kid - Ray Hidayat >> Fri, 31 Mar 2000 12:51:53 GMT

Hello again!
Does this server support HTTP????


Now the question I was going to ask was...
What is the difference between a peer to peer relationship and a parent to child relationship?

Can you give an example?

Re: Relationships and their inverses...

Posted: Fri Aug 07, 2009 11:50 am
by ConvertFromOldNGs
by David Mitchell >> Sun, 2 Apr 2000 4:38:15 GMT

A parent-child relationship means that if the parent object is deleted, the child will automatically be destroyed also (but not vice versa). And a peer-peer means that either can be deleted independently of each other.

eg A parent-child might be used if you have a Customer object (parent) with a relationship to allMyAccounts. When the customer was removed, you would want to remove their bank accounts also (but not the converse).

A peer-peer might be if you have a Teacher object which has a many-to-many allMyStudents (Student has allMyTeachers).

--
David Mitchell
JADE Kid - 1998
www.jadekids.com

PS What do you mean does this server support HTTP? The news server? HTTP is a protocol, if you mean HTML, then that depends on what program people are using to view the messages.

Re: If only I knew that!

Posted: Fri Aug 07, 2009 11:50 am
by ConvertFromOldNGs
by JADE Kid - Ray Hidayat >> Sun, 2 Apr 2000 6:06:52 GMT

I wish I had know that beforehand, because It would be a lot easier to program if I had!