Hi! I would like to know the difference between choosing foreign key mapping or relation-table mapping, when specifying an ejb-relation in jbosscmp-jdbc.xml deployment descriptor. And also when I must use each mapping.
Relationships can be mapped using either a foreign key or a separate relation-table. One to one and one to many relationships use the foreign key mapping style by default, and many to many relationships use only the relation-table mapping style.