[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ojb-user
Subject:    RE: Update of 1toN relationship
From:       "Nils Liebelt" <nils () candor ! co ! za>
Date:       2005-02-09 11:12:32
Message-ID: 200502091114.j19BDx14010298 () mailer ! progressive-comp ! com
[Download RAW message or body]

Sweet,

Thx I am updating through the contact object now. Works fine! I am not sure
if "reloading" actually would werk cause when retrieving the contact object
again (after inserting a service) I do complete lookup by identity with
auto-retrieve set true. It looks more like object cache issue.


GreetZ

Nils


-----Original Message-----
From: David.WIESZTAL@cec.eu.int [mailto:David.WIESZTAL@cec.eu.int] 
Sent: Wednesday, February 09, 2005 12:28 PM
To: ojb-user@db.apache.org
Subject: RE: Update of 1toN relationship

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:nils@candor.co.za] 
Sent: Wednesday, February 09, 2005 11:06 AM
To: 'OJB Users List'
Cc: mike@candor.com
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic