Hello, I'm a new on this site, and specially on this forum, but I just had a similar problem. And the solution, in my case was to remember to put the model class of the specified table on the annotation-classes list in "spring-config.xml" (the xml configuration for the spring). Apparently the spring didn't recognize my model so giving the following exception :
"org.springframework.orm.hibernate3.HibernateQueryException: in expected: bs [from BookStore bswhere bs.title = ?]; nested exception is org.hibernate.QueryException: in expected: bs [from BookStore bs where bs.title= ?] at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:657) at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:424) at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:921) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:917) ..... "
Hope it helps :).
|