select count(*) from t_oneb t order by t.idException in thread "main" javax.persistence.PersistenceException: org.postgresql.util.PSQLException: ERROR: column "t.id" must appear in the GROUP BY clause or be used in an aggregate function at com.avaje.ebean.server.query.CQueryEngine.findRowCount(CQueryEngine.java:88)
Postgres for one does not like this and you get the error:
org.postgresql.util.PSQLException: ERROR: column "t.id" must appear in the GROUP BY clause or be used in an aggregate function
The fix is to set the orderBy to null for the find row count.
Fixed in HEAD.