@org.jboss.seam.annotations.security.management.UserRoles exposed in the User interface returns a simple List method.
seam-gen doesn't generate EntityQuery interfaces for @ManyToMany members like the getUserRoles mentioned above.
How do we enable this, so that the resultant roles are shown in a paginated fashion.
Edit 1:
This is the declaration in User.java
@ManyToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}, fetch = FetchType.LAZY)
@JoinTable(name = "user_role", joinColumns = @JoinColumn(name = "user_id), inverseJoinColumns = @JoinColumn(name = "role_id"))
@UserRoles
private List<Role> userRoles = new ArrayList<Role>(0);
This is the declaration in Role.java
@Entity
@Table(name = "role", uniqueConstraints = @UniqueConstraint(columnNames = "name"))
public class Role {