[snip] >OK. How to design B java class to hide the foreign key ? >I supose a public accessor is needed by OJB ?
No. You can specify different "PersistentFieldClass" in OJB.properties (this says how values are set/got on the persistent class). The default in the CVS version is uses reflection to do this, and hence the attributes do not need public accessors, nor do they need to be public. In earlier versions of OJB, you may have to change the PersistentFieldClass in OJB.properties. >Do I have to maintain the foreing key in Java code ? No. >In the case I change instance of A, do I have to change the foreing key >in B >"by hand" or is it done by OJB ? OJB does it. HTH Charles. This email and any attachments are strictly confidential and are intended solely for the addressee. If you are not the intended recipient you must not disclose, forward, copy or take any action in reliance on this message or its attachments. If you have received this email in error please notify the sender as soon as possible and delete it from your computer systems. Any views or opinions presented are solely those of the author and do not necessarily reflect those of HPD Software Limited or its affiliates. At present the integrity of email across the internet cannot be guaranteed and messages sent via this medium are potentially at risk. All liability is excluded to the extent permitted by law for any claims arising as a re- sult of the use of this medium to transmit information by or to HPD Software Limited or its affiliates. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
