I have a composite key of user id and user role in my database.
To compare the database 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; }
Currently, I can display a list of users, as well as add a new user to my application. But when I try to switch to the default "Edit" template by clicking on the user ID, I get the error message "No route."
In addition, I see that when the user clicks the composite identifier does not receive send as the URL, in fact, some object is added at the end of the URL (which may be the reason for this).
Please let me know how to display the default editing screen when we have a composite key in the database. I have been struggling with this problem for a very long time, but have not received any reference materials in the documentation :(
user182944
source share