1 Reply Latest reply on Nov 12, 2002 7:25 AM by tdang

    Foreign key, or relation table mapping?

    zokor

      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.

      Thank you very much

        • 1. Re: Foreign key, or relation table mapping?
          tdang

          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.

          Take a look in quick start guide at chapter 9.

          Hope that helps.