2 Replies Latest reply on Oct 21, 2002 11:11 AM by richardberger

    how to add field mapping of relationship in jb7&protegra

    cnwy

      I am using jb7&protegra to develop cmp2.0 on jboss3.0.2
      But I can not find the field mapping when define a many to one relationship(just like weblogic6.x).

      can somebody help?

        • 1. Re: how to add field mapping of relationship in jb7&protegra
          richardberger

          I am having a similar problem (also using JB7/Protegra) but perhaps we can be of help to one another. I have no trouble getting many-to-many relationships working, but one-to-many relationships cause queries to be generated that have column names that don't exist in my database and I can't find where to change those incorrect field names.

          One possible workaround is to change my database to have the strange names created by JB7/Protegra/JBoss - but that may not work for you.

          Did you get anywhere in your search?

          Thanks much,
          RB

          • 2. Re: how to add field mapping of relationship in jb7&protegra
            richardberger

            I have verified that the problem is caused by the jbosscmp-jdbc.xml that is generated by JBuilder/Protegra. Fixing that along the lines shown in the Flashline documentation (adding the <key-field> tags) appears to eliminate the problem. At least in my case.

            Good luck all!
            RB