I used createCriteria() and setFetchMode() methods to join and select. I don’t need all columns so I want to select specific columns to improve performance, but I can’t find how to do it. Maybe should I use HQL instead?
I used createCriteria() and setFetchMode() methods to join and select. I don’t need all
Share
You will need to set Projection on specific properties.
Example: