Works perfectly.
On Wednesday, July 2, 2003, at 03:55 PM, David Fry wrote:
You need to use "remote-foreignkey" instead of "element-foreignkey" under
ojb.collection :
/** * @ojb.collection element-class-ref="com.test.LoginUserRoleBO" * indirection-table="LOGIN_USER_LOGIN_USER_ROLE" * foreignkey="LOGIN_USER_ID" * remote-foreignkey="LOGIN_USER_ROLE_ID" * refresh="true" */
Note that the foreignkey values refer to the sql columns.
-----Original Message----- From: Marcus Breese [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 1:27 PM To: [EMAIL PROTECTED] Subject: OJB XDoclet M:N examples
Are there any examples of using the ojb xdoclet to perform m:n links?
I keep getting errors about no foreign keys being defined... and I've tried about every combination of Java Variables names, SQL column names, etc...
-=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-=- Marcus Breese [EMAIL PROTECTED] IU School of Medicine [EMAIL PROTECTED] Dept. of Biochemistry and Molecular Biology Center for Medical Genomics / Grow Lab
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-= -=-=- Marcus Breese [EMAIL PROTECTED] IU School of Medicine [EMAIL PROTECTED] Dept. of Biochemistry and Molecular Biology Center for Medical Genomics / Grow Lab
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
