have you tried the CVS version of xdoclet? this is a known problem in 1.1.2.
aslak > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin > Galligan > Sent: 23. september 2002 20:13 > To: '[EMAIL PROTECTED]' > Subject: [Xdoclet-user] RE: 1 to n unidirectional relationship/weblogic > column-map > > > > Sorry. Outlook just sent this before I was done... > > I'm building a unidirectional relationship between 2 objects. The > relationship is intended to show up on the many side. Everything seems to > be ok, except that the wrong role is showing up in the weblogic > rdbms file. > If I change the role manually, everything works fine. Is this a known > issue, or is it more likely that I'm doing something wrong? > > Here's the comment section... > > /** > * @ejb:interface-method view-type="local" > * @ejb:relation > * name="account-manager" > * role-name="one-account-has-one-manager" > * target-ejb="cdb/Manager" > * target-role-name="one-manager-has-many-accounts" > * target-multiple="yes" > * > * @weblogic:column-map > * foreign-key-column="mgrID" > * key-column="mgrID" > */ > > Here's what comes out... > > <weblogic-rdbms-relation> > <relation-name>account-manager</relation-name> > <weblogic-relationship-role> > > <relationship-role-name>one-manager-has-many-accounts</relationshi > p-role-nam > e> > <column-map> > <foreign-key-column>mgrID</foreign-key-column> > <key-column>mgrID</key-column> > </column-map> > </weblogic-relationship-role> > </weblogic-rdbms-relation> > <create-default-dbms-tables>False</create-default-dbms-tables> > > Here's the error... > > [java] ERROR: Error from ejbc: Error while reading > 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: > [java] > [java] In relationship 'account-manager', role > 'one-manager-has-many-accounts', invalid column 'mgrID', a colum > n-map element contains an invalid key-column. The key-column is > not defined > in the related bean or it's not recognized b > ecause of case mismatch. > [java] ERROR: ejbc found errors > [java] Java Result: 1 > > If I manually change... > > <relationship-role-name>one-manager-has-many-accounts</relationshi > p-role-nam > e> > > To... > > <relationship-role-name>one-account-has-one-manager</relationship- > role-name> > > it works. Does anybody know what I'd have to change to get it > working from > the original source? > > Thanks, > -Kevin > > > ================================================================= > This message contains confidential business information that is > intended for use only by the individual or entity to whom it is > addressed. If you are not the intended recipient, you are hereby > notified that any disclosure, interception, copying, distribution > or the taking of any action in reliance on the contents of this > email is prohibited. If you received this email in error, please > notify the sender by forwarding the message back to the sender, > and then delete the original information from your system. > ================================================================= > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
