Does M:N work on Jboss? I did go through the archives and couldn't find
a convincing reply. Please let me know if you have done it before.
I want to set up a M:N relation between user and roles and here is wot I
have
UserBean
/**
* Returns the related Roles
*
* @return the related Roles
* @ejb.interface-method
* view-type="local"
* @ejb.relation
* name="user-role"
* role-name="user-can-have-multiple-roles"
* @jboss.relation-table
* table-name="t_userroles"
*
* @jboss.relation
* fk-constraint="true"
* fk-column="c_userid_fk"
* related-pk-field="userId"
*
*/
public abstract java.util.Collection getRoles();
RoleBean
/**
* Returns the related Users
*
* @return the related Users
* @ejb.interface-method
* view-type="local"
* @ejb.relation
* name="user-role"
* role-name="role-can-have-multiple-users"
* @jboss.relation-table
* table-name="t_userroles"
*
* @jboss.relation
* fk-constraint="true"
* fk-column="c_roleid_fk"
* related-pk-field="roleId"
*
*/
public abstract java.util.Collection getUsers();
Thanks
Shankar
-------------------------------------------------------
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