This content has been marked as final.
Show 2 replies
-
1. Re: Problem with 1:1 CMP example from MasteringEJB2
lcranford Jun 29, 2002 6:40 PM (in response to adiraju)If you're using JBoss-3.0.0, then update the standardjbosscmp-jdbc.xml file in your conf directory.
change
<fk-constraint>false</fk-constraint>
to...
<fk-constraint>true</fk-constraint> -
2. Re: Problem with 1:1 CMP example from MasteringEJB2
adiraju Jul 1, 2002 2:00 AM (in response to adiraju)Thanks.
Now I have the FK's created.
Still one problem remaining though.
I have the 1:1 relationship direction Order --> Shipment.
So I have the field in the Order side of the relationship.I have 'NO' <cmr-field> on the shipment side.
Order Table created is fine. But my Shipment table created is as below
Table: Shipment
---------------
Field 1: SHIPMENT(PK)
Field 2: CITY
Field 3: ZIPCODE
Field 4: ORDERS_SHIPMENT (FK to Order.OrderID)
Why is this? How do i get rid of this extra field. I do not have this in my <cmp-field>'s.