Hi,

I'm using this now:

SelectJoinStep baseQuery = jooq
        .select(SEASON.YEAR, SEASON.WIKIPEDIA_URL)
        .from(SEASON);

Query countQuery = jooq
        .selectCount()
        .from(baseQuery);

Query pagedQuery = baseQuery
        .orderBy(toOrderBy(pageable))
        .limit(pageable.getPageSize())
        .offset(pageable.getOffset());

System.out.println("countQuery => " + countQuery.getSQL());
System.out.println("pagedQuery => " + pagedQuery.getSQL());


My base query uses a SelectJointStep type which looks a little bit ugly 
compared to the Query or Select types.
But I think this is best wat to do it or is there an alternative?


PS: would it be a good idea to start a jooq gitter room for discussions?


Best regards,
M

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to