Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to create association of non associated tables in hibernate?

 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends
This is the scenario. I have a table called



There is another table



USERNAME in USER is same as USER_LEAD in COMPONENT but not related using foreign key

Requirement I need to update all the usernames which are alpha format to Numbers in both the tables?

Example: Where ever the username is 'XYZ' this should be changed to 123 in USER and COMPONENT TABLES is it possible?

Is this possible to do this update via Hibernate?
 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any ideas please?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!