-
1. Re: Unidirectional One - One Mapping table creation
prashantpatel Jul 8, 2002 5:52 AM (in response to prashantpatel)Now i am getting the relationship i desire like this is it the right way.
<ejb-relation>
<ejb-relation-name>Account-CommunicationInfo</ejb-relation-name>
<foreign-key-mapping />
<ejb-relationship-role>
<ejb-relationship-role-name>
Account-has-CommunicationInfo
</ejb-relationship-role-name>
<fk-constraint>true</fk-constraint>
<!-- <key-fields>
<key-field>
<field-name>AccOid</field-name>
<column-name>AccOid</column-name>
</key-field>
</key-fields> -->
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>
Account-has-Communication
</ejb-relationship-role-name>
<fk-constraint>false</fk-constraint>
</ejb-relationship-role>
</ejb-relation>
What is the diffrence b/w
"foreign-key-mapping and relation-table-mapping"
Prashant patel -
2. Re: Unidirectional One - One Mapping table creation
prashantpatel Jul 8, 2002 12:07 PM (in response to prashantpatel)As you see i have commented the key-field tag which created field in communicationinfo after that jboss created a field in communicationinfo that i did not specify does jboss use this key for other purpose, but i am getting the relationship result i desired.
Prashant Patel