Discussion:
[Middlegen-user] jbosscmp-jdbc.xml jdbc-type and sql-type
D***@cexp.com
2003-09-12 18:26:23 UTC
Permalink
I am seeing one major difference in the jbosscmp-jdbc.xml file that is
generated by middlegen. Our standard one defined each attribute like this:

<cmp-field>
<field-name>attentionReferenceValue</field-name>
<column-name>ORDR_ATTENTION_REF_VALUE</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR2(30)</sql-type>
</cmp-field>

The middlegen one looks like this:

<cmp-field>
<field-name>actionLineID</field-name>
<column-name>ACLN_ACTION_LINE_ID</column-name>

</cmp-field>

Can someone point out to me how to have the jdbc-type and sql-type generated
for jbosscmp-jdbc.xml?

Thanks in advance,
Don Shade
Boulder, Colorado USA
Russell Simpkins
2003-09-12 21:39:04 UTC
Permalink
I'm no middlegen wiz, so I'm not sure if there is a configuration
setting that will do this. If there is not, you will have to edit a
velocity template. Middlegen will gen java files with xdoclet tags.
The java files are gen using velocity. Jbosscmp-jdbc.xml is gen with
xdoclet. I imagine that the velocity template is missing some xdoclet
attribute. It looks like you need to editentity-cmp-20.vm in
middlegen-entitybean-plugin.jar

Hope that helps.

-----Original Message-----
From: middlegen-user-***@lists.sourceforge.net
[mailto:middlegen-user-***@lists.sourceforge.net] On Behalf Of
***@cexp.com
Sent: Friday, September 12, 2003 4:21 PM
To: middlegen-***@lists.sourceforge.net
Cc: ***@cexp.com; ***@cexp.com;
***@cexp.com; ***@cexp.com
Subject: [Middlegen-user] jbosscmp-jdbc.xml jdbc-type and sql-type

I am seeing one major difference in the jbosscmp-jdbc.xml file that is
generated by middlegen. Our standard one defined each attribute like
this:

<cmp-field>
<field-name>attentionReferenceValue</field-name>
<column-name>ORDR_ATTENTION_REF_VALUE</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR2(30)</sql-type>
</cmp-field>

The middlegen one looks like this:

<cmp-field>
<field-name>actionLineID</field-name>
<column-name>ACLN_ACTION_LINE_ID</column-name>

</cmp-field>

Can someone point out to me how to have the jdbc-type and sql-type
generated
for jbosscmp-jdbc.xml?

Thanks in advance,
Don Shade
Boulder, Colorado USA



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Loading...