aspose file tools*
The moose likes Object Relational Mapping and the fly likes hibernate error while updating data but not on retrieval Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hibernate error while updating data but not on retrieval" Watch "hibernate error while updating data but not on retrieval" New topic
Author

hibernate error while updating data but not on retrieval

Manu ravi
Greenhorn

Joined: Aug 15, 2012
Posts: 16
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hibernate error while updating data but not on retrieval