@Test public void countNothing() { assertThat(H.sqlRequest("select count(*) from users where 1=0").count()).isEqualTo(0); }
public int count() { return query.count(); }
HibernateSqlRequest { public int count() { return query.count(); } }
HibernateSqlRequest { public int count() { return query.count(); } private  HibernateSqlRequest(String query); }
HibernateSqlRequest { public int count() { return query.count(); } private  HibernateSqlRequest(String query); HibernateSqlRequest<T> p(String name, Object val); HibernateSqlRequest<T> p(String name, Object... vals); HibernateSqlRequest<T> maxResults(int maxResults); HibernateSqlRequest<T> transform(Class<?> clazz); HibernateSqlRequest<T> useTransformer(ResultTransformer transformer); T first(); List<T> list(); int count(); HibernateSqlRequest<T> addEntity(Class<?> entityType); HibernateSqlRequest<T> addEntity(String tableAlias, Class<?> entityType); HibernateSqlRequest<T> addJoin(String tableAlias, String path); HibernateSqlRequest<T> addJoin(String tableAlias, String ownerTableAlias,
            String joinPropertyName); static HibernateSqlRequest<T> create(String query); }
HibernateSqlRequest { public int count() { return query.count(); } private  HibernateSqlRequest(String query); HibernateSqlRequest<T> p(String name, Object val); HibernateSqlRequest<T> p(String name, Object... vals); HibernateSqlRequest<T> maxResults(int maxResults); HibernateSqlRequest<T> transform(Class<?> clazz); HibernateSqlRequest<T> useTransformer(ResultTransformer transformer); T first(); List<T> list(); int count(); HibernateSqlRequest<T> addEntity(Class<?> entityType); HibernateSqlRequest<T> addEntity(String tableAlias, Class<?> entityType); HibernateSqlRequest<T> addJoin(String tableAlias, String path); HibernateSqlRequest<T> addJoin(String tableAlias, String ownerTableAlias,
            String joinPropertyName); static HibernateSqlRequest<T> create(String query);  }