Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hibernate error while updating data but not on retrieval  RSS feed

Manu ravi
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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!