Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get updated data for many to many mappings in Hibernate

 
shreekanth madananth
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on user and scheme application.Web page is there to create and update user. similarly scheme page is available to create and update. Now using hibernate I have many to many relationship with user to scheme table. I have created USER SCHEME and USER_SCHEME tables and saving them.

scheme has huge number of users. Now I have condition if a user updates his details, if he has more than 10 certification then in schema web page he has to be highlighted with star award. SO now i m in scheme page I have only schema id. IF user updates something its stored in user table, user id remains same across other table. How to identify, only this particular record been updated???
 
Marco Behler
Author
Ranch Hand
Posts: 43
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shreekanth,

hard to follow what you are writing about. Could you please post your table sql for the three tables USER, SCHEME and USER_SCHEME?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic