by JADE Kid - Ray Hidayat >> Tue, 14 Mar 2000 3:16:47 GMT
Ok, I am having problems working out, how to use many - to - many relationships.
so the diagram looks like this:
Key:
-< One to many relationship
>< Many to many relationship
-- One to one relationship
A Class >< And another class
Account >< Customer
I try to avoid using many to many relationships by doing the thing I do in Microsoft Access. (Access Tables are now called classes)
The technique was (This is an example of a bank):
A Class >- An Intermediate Class -< And another class
Account >- Registration -< Customer
So the intermediate class would have a reference that points to all the accounts that customer has...
and all the customers an account has.
So that would make one to many relationships which I could handle.
But in JADE you get the option of a many - to - many relationship, and somehow, it works.
Does JADE use the same technique that I use to do this?
How do I use this feature?
Ray Hidayat
JADE Kid - 2000
www.jadekids.com
(Thanks to David Mitchell [JADE Kid - 1998] for the 'footer')