Bugs item #543046, was opened at 2002-04-12 10: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: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Andreas Gehmeyr (gehmeyr)
>Assigned to: Dain Sundstrom (dsundstrom)
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
----------------------------------------------------------------------
>Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-04-12 12:02
Message:
Logged In: YES
user_id=251431
This is not a bug. The current docs are only valid for the
alpha.
----------------------------------------------------------------------
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