I am using Hibernate Criteria Projections Property. I want to test 'IS NULL' condition before adding into Projection List.
Consider sample example
.add(Projections.property("normalRange"),"normalRange")
i want to test this property value IS NULL and do some operations
(i.e) in Mysql
IF(normalRange IS NULL,testRange,normalRange) as normalRange
How to achieve this query in my Hibernate criteria ?
I hope my questions is clear. Please Help !