Hi Alex, > While deploying beans with one-to-one relationship each bean's table > contains a field that represent the primary key of the other bean. For > example for ResourceOwner-Contacts one-to-one unidirectional > relationship table 'resourceowner' contains field 'contacts' and table > 'contacts' contains 'ResourceOwner_contacts'. Why is it needed two > fields for this relationship?
Have you defined resourceOwner.contacts on your own or was it auto generated ? You need no attribute in the EJB's that stores a foreign key. The necessary attributes to store the relation are generated automaticly and at the correct side. In your case it should be a contact attribute at the Resource side and not more. So it works for me. If the attribute ResourceOwner_contacts was generated by JBoss, you have defined it on the wrong side, i think. CU Ingo Bruell --- <[EMAIL PROTECTED]> <ICQ# 40377720> Oldenburg PGP-Fingerprint: 9DD0 1776 DF4D 5B16 A532 C2A1 4701 EEA2 Germany PGP-Public-Key available at pgpkeys.mit.edu _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
