@ org.jboss.seam.annotations.security.management.UserRoles, opened in the user interface, returns a simple List method.
seam-gen does not create EntityQuery interfaces for @ManyToMany members like the getUserRoles mentioned above.
How to enable this so that the resulting roles will be shown paginated.
Change 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 listing is in Role.java
@Entity
@Table(name = "role", uniqueConstraints = @UniqueConstraint(columnNames = "name"))
public class Role {
source
share