I referred to the below one for adding a specific columns to be returned in hibernate. How to return an entity with chosen columns using Criteria
However in mycase the exclusion is small so i would like to see if i can give the list of columns to be excluded in the result.
Is there a optimal way to do it in hibernate?