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

Hibernate Set not updating

 
Michael Piaser
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know where to ask this or even how.

I am adding a new field to a table which is being controlled by Hibernate. I have a System.out in the "set" routine and I see that it is executing and has the correct value. My problem is that the database is not actually being updated.

I don't know much about Hibernate. I mimicked the code of another field which works. Any thoughts on how I might figure out why the actual update is not being done?
 
Knute Snortum
Sheriff
Posts: 3323
84
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post your code and any error messages?

Moving to ORM.
 
Michael Piaser
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a lot of code but I have pasted the three main components below. The new field is called "special"





 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
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!