Hi,

To add a service to a contact, you have two possibilities:
- you add a new service directly. But in this case you have to reload the
references of the contact.
You can use the method broker.retrieveAllReferences(contact)
- You add a new service in the collection of services defined in contact.
Then you store the contact. In this case the collection descriptior in
contact must have auto-update = true.

Here you are....

David WIESZTAL.


-----Original Message-----
From: Nils Liebelt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 09, 2005 11:06 AM
To: 'OJB Users List'
Cc: [EMAIL PROTECTED]
Subject: Update of 1toN relationship


Hi,

I experience a problem while updating a 1toN relationship:

I got a "contact" object with has n "service" objects. If I create a 
new service with a certain contactId (foreign key for contact) 
and store that object, the addressed contact object does 
not have the newly added service in the corresponding collection
immediately.
Makes sense cause of the object cache. But if turn the object
cache off it still takes time until I retrieve the completed collection?

Auto-update is set true. Do I have to update through the contact?


GreetZ Nils


*mtgglf*


---------------------------------------------------------------------
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]

Reply via email to