posted 9 years ago
Hi Everybody,
In my project we are having entity classes. We have two entity classes named User.java and Role.java. Both are connected using @OnetoMany (Many is the owning side of association).
In the case of editing user we are facing issue with user data. data is not getting into user object. For some other users it is working as expected. The code is as follows.
User.java
Role.java
users.jsp
The issue is during edit user we are fetching the roles information and user information in service implementation. For some users it is fetching user information. If I add new role and create a new user with
that role. If I want to edit the user it is not showing any user information in service implementation. null is available which is not useful for us.
Thank You very much for all the extended help.
Thanks and Regards,
G. Sathish Kumar