Thomas,
I am experiencing the same problem but i am not using to ODMG api (as
i think Saman was)
but rather straight PersistenceBroker.
1. Should i change my Vector collections to use DList ? or how do you
mean 'using DList' as your collection ?
2. WHen doing a proper 1-M mapping.. do i have to construct new
children, point them back to their parent object (the
<reference-descriptor>) and then
add it to the collection then call store() on the parent ?
thanks..
I had previously posted the same qn titled "1-M mappings" but i never
got a response from anyone
thanks again
James Nyika
Cambridge Technology Partners
The global eServices company of Novell, Inc.
http://www.novell.com
>>> [EMAIL PROTECTED] 6/11/2003 1:51:21 AM >>>
You have to lock the b elements too if you are using normal collections
to hold the many-side of the association.
If you were using DList as your collection class this won't be
required.
cheers,
thomas
Saman Ghodsian wrote:
> Hi there,
>
> Here is the situation...... Say I have class A and class B
1----->m
>
> I created the repository.xml
>
> Everything works fine when storing A to DB with a couple of B's
>
> Tx.lock(a, Transaction.WRITE);
> Tx.Commit
>
>
> Next step is to load a and add more B's and then save it again.....
>
> I created the query..... And all a and the related B's get loaded
ok....
>
> Now I add a couple more B's
> And store a
>
>
> Tx.lock(a, Transaction.WRITE);
> Also tried
> Tx.lock(a, Transaction.UPGRADE);
>
> But the new B's don't get inserted in DB.....
> Any ideas????
>
> Thanks
>
>
>
> Sam
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]