Exception in thread "main" org.springframework.orm.hibernate3.HibernateQueryException:
Test is not mapped [from Test t where t.name = ?];
nested exception is org.hibernate.hql.ast.QuerySyntaxException:
Test is not mapped [from Test t where t.name = ?] at
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:640)
Check the imports of your '@Entity' annotations in your beans
If it is:
org.hibernate.annotations.Entity;Then change it to:
import javax.persistence.Entity;and life will be sweet.
6 comments:
thank you, man!
... thank you ! *EXACTLY* what I was looking for ... dammn glad your post came in the first hits in my googling...
thanks :)
Thanks for gr8 help indeed.
Thanks :)
excellent, my problems is IMPORT
Post a Comment