1 Reply Latest reply on May 23, 2002 11:58 AM by pluellen

    CMR Many to Many Is not Creating table nor Mapping

    fastball

      Hi everybody,
      I am trying to make a many-to-many relationship between two entities beans using CMP. I've already defined the methods related to the collection-based in the bean classes. But, when I deploy, the table(from the relationship) is not being created.

      I've attached the files...
      Is there something wrong?

      Thanks in advance,

        • 1. Re: CMR Many to Many Is not Creating table nor Mapping
          pluellen

          I took a look at your jbosscmp-jdbc.xml file and found that some of the tags (ie. <table-mapping>) are no longer being used. You may be working off an old DTD.

          You can find the DTDs at http://jboss.org/j2ee/dtd/

          Also, I'd suggest you put the full document type definition in your .xml files.

          <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN"
           "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
          That way your files will be fully validated when they deploy.

          Hope this helps.