I don't understand why it's necessary.
I'm afraid we put relational concept in object model.
Say A is compose of many B.
It's needed in the database to put an id of A in B table.
In object model I should have a collection of B on A,
but I shouldn't find any attribut that relfect database "stranger key"
like Aid in B class !
Java references should replace database jointure in object world, that's
why there is a collection of B in A.
Is this problem solved with OBJ :
A is compose of many B :
A a1 = new A();
B b1 = new B();
B b2 = new B();
A a2 = new A();
B b3 = new B();
A1.add(b1);
A1.add(b2);
A2.add(b3);
Store(a1);
Store(a2);
A1.remove(b2);
A2.add(b2);
/*
Is it ok here without taking care of updating attribute in B that
reflect A primary key ? In fact, in b2 there is an attribute that is the
"stranger key", but it's a relational concept. */ Store(a1); Store(a2);
______________________________________________
Jean-Baptiste BRIAUD Sysdeo
Software engineer www.sysdeo.com
www.eclipsetotale.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]