2003-11-14 12:21:53,231 ERROR [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error:
java.lang.NoSuchMethodError: User.getUserGroups()Ljava/util/Set;
When I trying to obtaing a "set" from a persistent class a get that error.
that is the arquitecture. It's a mnay to many relationship
Users >-----< UserGroups
in the User.java class have this
private set userGroups;
/**
* @hibernate.set
* role = "userGroups"
* lazy = "true"
* table = "user_group_details"
* @hibernate.collection-key
* column = "USR_ID"
* @hibernate.collection-many-to-many
* class="com.miradores.vmon.data.UserGroup"
* column = "USG_ID"
**/
public Set getUserGroups() {
return userGroups;
}
/**
* Standard setter
**/
public void setUserGroups (Set invar) {
this.userGroups = invar;
}
and this is the code for getting the set of usergroups
// Getting the User (it's ok beacuse when I print user properties they are OK)
User u = UserFactory.findByPrimaryKey( sess, usrId );
then when I try to use the u.getUserGroups();
the error ocurr
|