title: How to fetch a property only if it's not null in Hibernate
body: <p>In Hibernate query how do i check if a property is null? Depending on the result i want to fetch that property and if it is not null i have to fetch another property.</p>