org.hibernate.hql.ast.QuerySyntaxException with Hibernate

后端 未结 7 2003
死守一世寂寞
死守一世寂寞 2021-02-20 01:34

I\'m new to using Hibernate with Java. I\'m getting the following exception. The stuff that I found online regarding this error didn\'t seem to help. Any ideas? The Exception:<

7条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 01:59

    You should specify a column to do the count on

    select count(c.someColumn) from ApplPerfStats c
    

    Or try a count(*)

    select count(*) from ApplPerfStats c
    

提交回复
热议问题