Exception in thread "main" org.springframework.orm.hibernate3.HibernateQueryException: echo_message is not mapped. [from echo_message]; nested exception is org.hibernate.hql.ast.QuerySyntaxError: echo_message is not mapped. [from echo_message]
org.hibernate.hql.ast.QuerySyntaxError: echo_message is not mapped. [from echo_message]
出现如上错误,不知道从何入手解决?
------解决方法--------------------------------------------------------
就上面这点错误信息好像还看不了啥来
------解决方法--------------------------------------------------------
“from echo_message” 写错了,Hql的语法是"from ${classname}"
echo_message --->EchoMessage
用getHibernateTemplate().loadAll(EchoMessage.class)不好吗?,还有利用一级缓存的可能。