I have found the solution to my previous post. I was using the
wrong
attribute to the @weblogic.column-map tag. I changed
"primary-key" to
"key-column" and it works fine. Silly me...
/**
* @ejb.interface-method view-type="local"
* @ejb.relation name="Author_Book_Rel"
* role-name="this_authors_books"
*
* @weblogic.relation join-table-name="AUTHOR_BOOK_REL"
* @weblogic.column-map foreign-key-column="AUTHORID"
* key-column="ID"
*/
public abstract Collection getBooks();
/**
* @ejb.interface-method view-type="local"
* @ejb.relation name="Author_Book_Rel"
* role-name="this_books_authors"
*
* @weblogic.relation join-table-name="AUTHOR_BOOK_REL"
* @weblogic.column-map foreign-key-column="ISBN"
* key-column="ISBN"
*/
public abstract Collection getAuthors();
|