I have a composite key of User Id and User Role in my DB.
For mapping the DB with the model, below is the code:
@Id
@Column(name="ID")
public int userId;
@Id
@Column(name="USER_ROLE")
public String userRole;
......
......
@Override
public String toString() {
return userId;
}
Presently I am able to display the list of users and also able to add new user for my application. But When I try to route to the default "Edit" template by clicking a User Id then I receive an error: "No Route".
Also, I can see that on click of an user, the composite id is not getting send as the URL, in fact some object is being appended at the end of the url (which might be a reason for this).
Kindly let me know how to display the default edit screen when we have a composite key in the DB. I have been struggling with this issue since quite some time but did not got any reference materials in documentation :(