idea搭建maven+hibernate环境报错不能找到映射
报错详情:
[ERROR] 2019-02-19 14:11:15,001 method:org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler.handleError(TaskUtils.java:95)
Unexpected error occurred in scheduled task.
org.springframework.orm.hibernate3.HibernateQueryException: User is not mapped [from User where state=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User where state=?]
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:671)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:414)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:415)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:378)
at org.springframework.orm.hibernate3.