Ok, thank you very much but I have some questions.
1. you have wrote :
* @jboss:relation
* related-pk-field="id"
* fk-column="requisitionId
is the id field is the id of reqBean or interviewerBean ?
fk-column as I think, is the name of field in the table of the database,
so is there a field called requistionId in the table of interviewerBean ?
I think <column-name> element will specify the fk field in the table schema, right ?
2. take a look at these tags :
<ejb-relationship-role-name>reqBean</ejb-relationship-role-name>
<key-fields>
<key-field>
<field-name>id</field-name>
<column-name>requisitionId</column-name>
</key-field>
</key-fields>
and take another one at :
(the following are inside the interviewerBean)
* @jboss:relation
* related-pk-field="id"
* fk-column="requisitionId"
*/
why the id and requistionId are appearing under the reqBean although this bean, has no requistionId field and you specify these information in the interviewerBean ?
3. as a general rule, in the one-many bidirectional relationship , which bean should have the fields of the relation (I mean, inside the jbosscmp-jdbc.xml file) ?
and in our example, the reqBean or the interviewerBean ?
4. I have read the following from a tutorial :
the <field-name> tag must be the primary key field of the entity bean in the relation.
in our example, this bean is the reqBean or interviewer bean ?
Thank you
alot and for your help..