Hi Birgitta,

[EMAIL PROTECTED] wrote:



Gotcha! I have to define the child in the parent class as an "extend"! Now it all works just fine (even with anonymous keys ;-) )!


Great! Like those posting best ;-)


Using anonymous keys outside of a 1:1 reference will work if your persistence capable objects never be serialized and only be handled within one JVM.
All anonymous keys managed inside OJB using object identity (have a look in ...broker.metadata.fieldaccess.AnonymousPersistentField). Thus if you serialize an pc object (e.g. using n-tier) all anonymous keys will be lost. In a 1:1 reference this doesn't matter, because we will find the reference object and the anonymous key can be set again.
Hope this make my caveat about using anonymous keys outside of a 1:1 reference more clear.



Thank you all for OJB, this wonderful product!


Thank you for using OJB.


regards,
Armin

Birgitta

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



Reply via email to