Relationships and their inverses...

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Relationships and their inverses...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:50 am

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?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Relationships and their inverses...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:50 am

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: If only I knew that!

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:50 am

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!


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 17 guests

cron