This one time, at band camp, Cobble, Tim said:
CT>Ok, I now have another question? Middlegen generated code that
CT>represents database columns as a class type. e.g. Table T_Employee has
CT>a foreign key Ipt_ID; it is just an int. Middlegen generated code that
CT>represents this as an object of T_IPT instead of just an int.
CT>
CT>Is this right? What xdoclet tags do I need to put here to generate the
CT>mapping.xml? All I get is can not convert T_IPT to int????
CT>
CT>Shouldn't it just be an int?
CT>
CT>Maybe I am missing the whole reason for JDO?
Tim,
Please refer to the EJB 2.x spec. EJB 2.0 introduced the idea of primary
keys modeled as objects separate from the entity that models the table. So
the code that Middlegen is generating is correct.
BTW, I happen to like Middlegen quite a lot. It's a huge timesaver when
writing EJBs.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev