Pagination with SqlRow

105 views
Skip to first unread message

kryptos

unread,
May 16, 2012, 3:03:54 PM5/16/12
to Ebean ORM
Hi guys,

I can't paginate my query result with a SqlRow.. but an entity bean..
so I'm wondering how can I paginate my result with a sqlRow type, if
possible.

Regards

Rob Bygrave

unread,
May 16, 2012, 6:27:33 PM5/16/12
to eb...@googlegroups.com
No, Ebean doesn't have a feature to page result with a SqlQuery (returning SqlRow's) unfortunately.  That sounds like a feature request. Hmmm.

You could look to use com.avaje.ebean.RawSql with a entity bean as an alternative option.

Cheers, Rob.

kryptos

unread,
May 17, 2012, 4:54:45 PM5/17/12
to Ebean ORM
Thanks, I'll see RawSql.. but I found others solution here in the
forum..
1. Using RawSql (as you mention).
2. Using SqlRow and transform it to a defined custom entity.
3. @SqlSelect

Regards and thanks!.

On May 16, 6:27 pm, Rob Bygrave <robin.bygr...@gmail.com> wrote:
> No, Ebean doesn't have a feature to page result with a SqlQuery (returning
> SqlRow's) unfortunately.  That sounds like a feature request. Hmmm.
>
> You could look to use com.avaje.ebean.RawSql with a entity bean as an
> alternative option.
>
> Cheers, Rob.
>
Reply all
Reply to author
Forward
0 new messages