• Home
  • RSS Feed
  • Log in

Posts Tagged ‘criteria’

Sorting and pagination with Hibernate Criteria – How it can go wrong with joins
Posted by Jeroen van Wilgenburg mid-morning: December 11th, 2008

Lately I ran into an annoying problem with Hibernate. I tried to do pagination on a query result which was doing an SQL-JOIN under the hood. The query before paging returned about 100 results. When I turned on paging (with 20 results per page) all the pages had less than 20 results!
The reason for this is that with a JOIN there can be duplicate results and those results are filtered out after pagination is done. In this blog I will explain how to solve those problems and it also a cleaner way to build your Criteria queries.
(more...)

  • Share/Bookmark

Tags: criteria, Hibernate, pagination
Filed under Java | 9 Comments »

Deployment automation for Java application running on Websphere, WebLogic and JBoss

Categories

  • Java (291)
  • Agile (127)
  • General (96)
  • Architecture (47)
  • Testing (45)
  • Scrum (44)
  • Performance (42)
  • Podcast (31)
  • SOA (25)
  • Middleware (31)
    • Deployment (20)
  • Project Management (23)
  • Xebia Labs (21)
  • Quality Assurance (16)
  • Tools (12)
  • lean architecture (11)
  • Requirements Management (10)
  • Articles (9)
  • Virtualization (9)
  • Security (7)

Tag Cloud

    Frameworks Grails Concurrency Control Scala Spring Maven Groovy websphere Java Ajax IntelliJ Scrum Moving to India lean architecture agile architectuur Performance SOA Architecture lean architectuur Oracle qcon Lean Eclipse JPA Flex ACT XML Agile Hibernate JPA implementation patterns

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Archives

  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009