D***@cexp.com
2003-10-16 21:40:08 UTC
Middlegen is incorrectly generating CMP and CMR fields incorrectly. It's
creating the FK fields as both CMP as well as the CMR fields.
Example of this problem can be found in the following example. Please note
the jbosscmp-jdbc.xml snippet from below. HDNT_ORDER_ID field is actually a
CMR field that needs to be set by the container.. and shouldn't be defined
below. We need to fix this since this will cause the container to throw
errors.
Does anyone have a solution to this?
Don Shade
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<entity>
<ejb-name>HeaderNote</ejb-name>
<create-table>false</create-table>
<remove-table>false</remove-table>
<table-name>THDNT_HEADER_NOTE</table-name>
<cmp-field>
<field-name>headerNoteID</field-name>
<column-name>HDNT_HEADER_NOTE_ID</column-name>
</cmp-field>
<cmp-field>
<field-name>orderID</field-name>
<column-name>HDNT_ORDER_ID</column-name>
</cmp-field>
creating the FK fields as both CMP as well as the CMR fields.
Example of this problem can be found in the following example. Please note
the jbosscmp-jdbc.xml snippet from below. HDNT_ORDER_ID field is actually a
CMR field that needs to be set by the container.. and shouldn't be defined
below. We need to fix this since this will cause the container to throw
errors.
Does anyone have a solution to this?
Don Shade
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<entity>
<ejb-name>HeaderNote</ejb-name>
<create-table>false</create-table>
<remove-table>false</remove-table>
<table-name>THDNT_HEADER_NOTE</table-name>
<cmp-field>
<field-name>headerNoteID</field-name>
<column-name>HDNT_HEADER_NOTE_ID</column-name>
</cmp-field>
<cmp-field>
<field-name>orderID</field-name>
<column-name>HDNT_ORDER_ID</column-name>
</cmp-field>