ok, I tried it with

Person p = new Person();
p.setAdresseid(oldPerson.getAdresse().getId()); 
broker.store(p);

same result!

the only Way it works is:

Person p = new Person();
p.setAdresse(oldAdresse); // oldAdresse is no Proxy!!!
broker.store(p);

Can I use referenceproxies with the Persistence Broker API?



-----Urspr�ngliche Nachricht-----
Von: Efftinge, Sven [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 17. September 2002 14:00
An: 'OJB Users List'
Betreff: Persistence Broker API and Proxies


Hi,
I have two Objects(person,adresse) with n:1 relation.

when I try to create a new Person like this :

Person p = new Person();
p.setAdresse(oldPerson.getAdresse()); 
broker.store(p);

there is no adresseid in table person.
I'm using reference- and collectionproxies, so oldPerson.getAdresse()
returns a proxy.

thanks for any help, Sven


 

 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to