我正在尝试使用命名查询,但它不起作用:
@NamedQuery(name = "Uscensuspopulationdata.fetchmostpopstate", query = "SELECT MAX(u.pop2010) FROM Uscensuspopulationdata where u.pop2010 <> 0")
Uscensuspopulationdata 是一个实体。我在做什么错?这是错误:
FailedPredicateException(arithmeticPrimary,{ aggregatesAllowed() }?)