Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate error while updating data but not on retrieval

 
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