This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate error while updating data but not on retrieval  RSS feed

 
Manu ravi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am using spring2.0 and hibernate 2.5 to persist data to a sql server 2008. I am able to retrieve the data without any problem but when i try to update data, i get a

org.springframework.jdbc.BadSqlGrammarException: Hibernate operation: could not load: [.hibernate.Provider#1]; bad SQL grammar [];
nested exception is java.sql.SQLException: Invalid column name 'eobPref'.
Caused by: java.sql.SQLException: Invalid column name 'eobPref

but i did create the column and i have mapped the hibernate as


i have stored the column as varchar(1)
can you please guide me in rectifying my mistake?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!