2 Replies Latest reply on Apr 25, 2004 6:28 AM by Julien Martin

    CMR relation tables (further to a post by Sesque)

    Julien Martin Expert

      Hello,
      Further to a post by Sesque that can be found here:
      http://jboss.org/index.html?module=bb&op=viewtopic&t=48933I would be grateful if someone could tell me where to find more documentation about the CMR relation tables mentionned by Sesque.
      I was not able to find anything in the ejb spec.
      Thanks in advance,
      Julien.

        • 1. Re: CMR relation tables (further to a post by Sesque)
          sesques Novice

          Hi again,
          CMR relation tables are many to many relationships as described in the spec. This means defining both CMR fields (for each entity bean) as Collections, and of course the multiplicity as many.

          The mapping to the database is quite specific to each application server.
          For JBoss, all the mapping is done in jbosscmp-jdbc.xml. The relation table is described in a tag named <relation-table-mapping>.

          If you are a newbee, I suggest you to download the JBoss IDE under Eclipse, and use XDoclet to generate all this staff. You can have a look to the XDoclet documentation at http://xdoclet.sourceforge.net/.
          Also, have a look in the Persistence & CMP/JBoss forum where these specifics topics had been posted many times.

          • 2. CMR relation tables (further to a post by Sesque)
            Julien Martin Expert

            Hi,
            All the ejb stuff I have done so far has been done by hand. I have heard many a good comments about XDoclet but never used it.
            I am going use it from now on.
            Thanks a lot,
            Julien.