reset password
Author Message
xieguahu
Posts: 50
Posted 14:59 Nov 14, 2009 |

I got this error,

ERROR ExceptionResolver: org.springframework.orm.hibernate3.HibernateQueryException: Answer is not mapped [from Answer where submission = ?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Answer is not mapped [from Answer where submission = ?]

Then I checked my hbm file, hibernate.cfg.xml file, and everything is correct.

So I google to find if there is any other solution.  And someone suggest that in the Answer.hbm.xml file, I should not set 'auto-import="false"', and making all the class references absolute.  I tried that, and it worked.

My question is that why I should do that?   And the link to the page I found is:

https://forum.hibernate.org/viewtopic.php?p=2367003&sid=57d04f272dd8a9b70c08e8e269dee2bb

cysun
Posts: 2935
Posted 01:09 Nov 15, 2009 |

It sounds like a Hibernate bug.