Loading

Derby 10.5 “OFFSET/FETCH” and JPA

It seems that no current JPA implementation is able to paginate the result using Apache Derby 10.5 “OFFSET/FETCH” mechanism. So javax.persistence.Query setFirstResult and setMaxResults don’t really translate into proper pagination with “OFFSET/FETCH”

One Comment

  1. Posted January 27, 2010 at 7:29 pm | Permalink

    tnx for a post.
    i’ve found that there is a pacth for Hibernate’s DerbyDialect here http://opensource.atlassian.com/projects/hibernate/browse/HHH-3972. And FETCH/OFFSET logis is implemented in DerbyDialect from hibernate-core-3.5-beta-2. I’ve now checked beta-3 – there it is! But have not not tested it in practice yet.

Post a Comment

Your email is never shared.