Needs to take a DISTINCT value of two columns of the same table using Hibernate Entity. That is not possible.