Thanks. I am also a huge fan of Middlegen. The JDO Plug-in that it comes with does not produce castor tags. I am guessing it produces RI tags??? Do you have or know of a plugin for Middlegen that will produce the castor tags?
If not, how do I denote the code I have from Middlegen? My generated code example is attached (I hope that works on this list) Thanks again! Tim -----Original Message----- From: Bruce Snyder [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2003 11:54 AM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Newbie: Relation Question 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
TEmployeBean.java
Description: TEmployeBean.java
