SSH error when viewing clients

严重: 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]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325293314&siteId=291194637