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

How to update a single field in hibernate

 
shankhas sanyal
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
can anybody please explain to me the procedure to update a single field without using Hibernate Query Language or SQL using set and in a one to many relationship ?
thank you !!
Shankha
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, do you have your entities mapped?

Here's a little example that uses a Team that has players:



ERD:


Class Diagram:


Here's the full tutorial: Mapping One To Many Relationships

-Cameron McKenzie

 
shankhas sanyal
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cameron Wallace McKenzie wrote:Well, do you have your entities mapped?

Here's a little example that uses a Team that has players:



ERD:


Class Diagram:


Here's the full tutorial: Mapping One To Many Relationships

-Cameron McKenzie






Wow thanks This really helps a lot!!!
Your The Best !!!
 
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!