Skip to content

Exclude MaxRows FirstRow in findRowCount #288

Closed
@icode

Description

@icode
class A {
    @OneToMany
    List<B> bs;
}
Query<A> query = Ebean.createQuery(A.class);
query.eq("bs.p1", 9); // if not add this, select count right
query.setMaxRows(maxRows);
query.setFirstRow(firstRow);
FutureRowCount futureRowCount = query.findFutureRowCount();

Generate sql

select count(*) from (select * from table limit 6)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions