I have a problem with my relatonship:

i have a table called MailMessages and a table called Users.

in my MailMessages i have a getToUsers which is a collection of Users
which i send messages.

so i created:

/**
* @ejb.interface-method
* @ejb:relation
*   name="MailMessages-toUser"
*   role-name="MailMessages-Has-Many_toUsers"
*   target-ejb="Users"
*   target-role-name="toUser-belongs_to-MailMessages"
*   target-cascade-delete="no"
*   target-multiple="yes"
* @jboss.relation
*  fk-column = "toUsers"
*  related-pk-field = "user_key"
*  fk-constraint = "true"
*/
public abstract Collection getToUsers();
/**
[EMAIL PROTECTED]:interface-method view-type="local"
*/
public abstract void setToUsers(Collection toUsers);


but jboos keep saying:

Both roles of a relation-table mapped relationship must have key fields:
ejb-relation-name=MailMessages-toUser

dont thay have that ? whats giong wrong

i have a 1-1 relation working, the ony diference i made is that i use a
Collection instead of UsersLocal interface

Regard David Nielsen



-------------------------------------------------------
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

Reply via email to