• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in saveOrUpdate()

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am loading the data through a method, (using criteria), editing the value and then passing onto the different method with code as session.saveOrUpdate(). Here is the code



Here is the exception



This Entity class contains a property known as classAdmitted, which is a primary key. I just need to update the another property(tuition fee) associated with classAdmitted property
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!