• 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 !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic