Bugs item #543046, was opened at 2002-04-12 17:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=543046&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Andreas Gehmeyr (gehmeyr)
Assigned to: Nobody/Anonymous (nobody)
Summary: CMR 1:n foreign key

Initial Comment:
Running on Win2K, JBoss-3.0.0beta2 CVSTag=HEAD

In a CMR 1:n (Order-LineItem from the docu), jboss 
spits out an
org.jboss.deployment.DeploymentException: Role: 
lineitem-belongsto-order with multiplicity many using 
foreign-key mapping is not allowed to have key-
fields      

With the following slice of jbosscmp-jdbc.xml:
    <ejb-relation-name>Order-LineItem</ejb-relation-
name>
        <foreign-key-mapping/>
        <ejb-relationship-role>
           <ejb-relationship-role-name>order-has-
lineitems</ejb-relationship-role-name>
         </ejb-relationship-role>
        <ejb-relationship-role>
           <ejb-relationship-role-name>lineitem-
belongsto-order</ejb-relationship-role-name>
               <key-fields>
                  <key-field>
                     <field-name>ordernumber</field-
name>
                     <column-name>ORDER_NUMBER</column-
name>
                  </key-field>
               </key-fields>
        </ejb-relationship-role>
       </ejb-relation>

If I leave the <key-fields>-section, it tells me:
org.jboss.deployment.DeploymentException: At least one 
role of a foreign-key mapped relationship must have 
key fields: ejb-relation-name=Order-LineItem


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=543046&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to