• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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.




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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic