Hmmm, also it looks like <foreign-key-mapping/> is an empty field, not as per the doc examples:
<foreign-key-mapping> <ejb-relationship-role> <ejb-relationship-role-name>order-has-lineitems</ejb-relationship-role-name> <foreign-key-fields/> </ejb-relationship-role> <ejb-relationship-role> <ejb-relationship-role-name>lineitem-belongsto-order</ejb-relationship-role-name> <foreign-key-fields> <foreign-key-field> <field-name>ordernumber</field-name> <column-name>ORDER_NUMBER</column-name> </foreign-key-field> </foreign-key-fields> </ejb-relationship-role> </foreign-key-mapping> Perhaps I'm beating a dead horse (sorry PITA), so if this is all supposed to be fixed soon, any chance I getting an early release of the examples? :) I'll keep plodding through. David Russel: If you have an example of a foreign-key-mapping one-to-many (or otherwise) of your jbosscmp-jdbc.xml and ejb-jar.xml that you got working on JBoss 3.0, would you be willing to share? Attachments are fine with me! :) -- -bk Quoting David Russell <[EMAIL PROTECTED]>: > The final DTD has <key-fields> and <key-field> respectively as opposed to the > foreign-key-field versions. Just spent a little time finding that one > myself. > > David > > > David P. Russell > Lead Technical Consultant > Idea Integration > [EMAIL PROTECTED] > [EMAIL PROTECTED] > (585) 249-2600 > (585) 273-7728 > > >>> [EMAIL PROTECTED] 06/07/02 02:07PM >>> > I am looking at %JBOSS_HOME%/docs/dtd/jbosscmp-jdbc_3_0.dtd, is this the > correct > one? > > If so, the example with the CMP docs has the following excerpt: > > <foreign-key-fields> > <foreign-key-field> > <field-name>userId</field-name> > <column-name>USER_ID</column-name> > </foreign-key-field> > </foreign-key-fields> > > But there is no string matching "foreign-key-field" in that dtd. Am I > doing > something wrong? I'm willing to accept that!! :) > > [knitterb@zoot ~]$ grep foreign-key-field > ~/progs/jboss-3.0.0/docs/dtd/jbosscmp-jdbc_3_0.dtd > 0.010u 0.000s 0:00.00 0.0% 0+0k 0+0io 118pf+0w > [knitterb@zoot ~]$ > > Thanks, > > -- > -bk > > > Quoting Dain Sundstrom <[EMAIL PROTECTED]>: > > > The old docs are OLD. The correct dtd to use is the one included with > > the release in docs/dtd. Also type-mapping was changed to > > datasource-mapping between alpha and beta 2. > > > > -dain > > > > Brandon Knitter wrote: > > > > > I added the following to the top of my jbosscmp-jdbc.xml file and was > met > > with > > > TONS of errors, including errors from things I copied from the cmp2 > > commerce > > > example: > > > > > > > > > <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" > > > "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd"> > > > > > > > > > I did check out the "patch for cmp documentation updates" in another > email > > (just > > > visually patched it), and even those may not meet the dtd that comes > with > > jboss > > > 3.0? Is this known? > > > > > > An example would be that the commerce example which comes with the cmp > > > documentation has the following excerpt in the jbosscmp-jdbc.xml file: > > > > > > > > > <defaults> > > > <datasource>java:/DefaultDS</datasource> > > > <type-mapping>Hypersonic SQL</type-mapping> > > > <debug>true</debug> > > > <create-table>true</create-table> > > > <remove-table>true</remove-table> > > > <read-only>false</read-only> > > > <time-out>300</time-out> > > > <select-for-update>false</select-for-update> > > > <pk-constraint>true</pk-constraint> > > > <relation-mapping-style>foreign-key</relation-mapping-style> > > > <read-ahead>true</read-ahead> > > > </defaults> > > > > > > > > > But according to the dtd, the field "type-mapping" isn't allowed. > > > > > > > > > <!-- > > > The optional defaults elements contains the default values for > > > entities, and relationships. > > > --> > > > <!ELEMENT defaults ((datasource, datasource-mapping)?, create-table?, > > > remove-table?, read-only?, read-time-out?, row-locking?, > > > pk-constraint?, fk-constraint?, preferred-relation-mapping?, > > > read-ahead?, list-cache-max?)> > > > > > > > > > > > > Sorry if this is a duplicate question, but I'm trying everything to see > if > > I > > > messed up my files...I'm still having my weird relationship problem. > > > > > > Thanks, > > > > > > > > > > > > > > _______________________________________________________________ > > > > Don't miss the 2002 Sprint PCS Application Developer's Conference > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user