Hibernate Tips: How to Handle NULL Values while Ordering Query Results in a CriteriaQuery
|

Hibernate Tips: How to Handle NULL Values while Ordering Query Results in a CriteriaQuery

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: You showed in a previous tip how to handle null values in a JPQL ORDER BY clause. Can I…

Hibernate Tips: How To Apply DISTINCT to Your JPQL But Not Your SQL Query

Hibernate Tips: How To Apply DISTINCT to Your JPQL But Not Your SQL Query

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: I’m using a query with a JOIN FETCH clause to load parent entities with all their child entities. The JPQL…

Hibernate Tips: How to Exclude Deactivated Elements from an Association

Hibernate Tips: How to Exclude Deactivated Elements from an Association

Hibernate Tips is a series of posts in which I describe a quick and easy solution for common Hibernate questions. If you have a question for a future Hibernate Tip, please post a comment below. Question: This Hibernate Tip was inspired by a question I answered on Stack Overflow. The user had to map a…