This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
hibernate error while updating data but not on retrieval
posted 3 years ago
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?