This post has moved — continue to /blog/dynamic-query-with-jpa-criteria-support/