• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

jpa associations issue

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Seriously? That's what you're going with? I prefer this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic