Discussion:
[Middlegen-user] duplicate CMP and CMR fields
D***@cexp.com
2003-10-16 21:40:08 UTC
Permalink
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>
Eivind Waaler
2003-10-17 04:39:02 UTC
Permalink
You could try the fkcmp flag in the cmp20 plugin maybe?

http://boss.bekk.no/boss/middlegen/plugins/cmp20.html#fkcmp

.eivind
Post by D***@cexp.com
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>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
Click here: http://sourceforge.net/supporters.php
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...