代码如下:public boolean hasArchiedStage(Integer stageId) {
String jpql = "SELECT COUNT(e) FROM ABC e where e.stageId=" + stageId ;
int count = 0 ;
count = ((Number)getJpaTemplate().find(jpql).get(0)).intValue() ;
return count > 0 ;
}
org.hibernate.hql.ast.QuerySyntaxException: EtlExpStageArchived is not mapped [SELECT COUNT(e) FROM ABC e where e.stageId=16039]; nested exception is java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: EtlExpStageArchived is not mapped [SELECT COUNT(e) FROM ABC e where e.stageId=16039]