严重: Exception occurred during processing request: customer_info is not mapped [from customer_info]; nested exception is org.hibernate.hql.internal.ast.QuerySyntaxException: customer_info is not mapped [from customer_info]
org.springframework.orm.hibernate5.HibernateQueryException: customer_info is not mapped [from customer_info]; nested exception is org.hibernate.hql.internal.ast.QuerySyntaxException: customer_info is not mapped [from customer_info]
In the HQL statement in CusDAOimpl
public List<CusInfo_fy> findALL() { String querystr="from customer_info"; List<CusInfo_fy> list = (List<CusInfo_fy>) this.getHibernateTemplate().find(querystr); return list; }
customer_info is the table name in my database, but it should be written in the entity class CusInfo that needs to be mapped in javaweb
严重: Exception occurred during processing request: customer_info is not mapped [from customer_info]; nested exception is org.hibernate.hql.internal.ast.QuerySyntaxException: customer_info is not mapped [from customer_info]
org.springframework.orm.hibernate5.HibernateQueryException: customer_info is not mapped [from customer_info]; nested exception is org.hibernate.hql.internal.ast.QuerySyntaxException: customer_info is not mapped [from customer_info]