Hibernate 5.2 - ResultTransformer not working for select new queries?

You don’t need to use the ResultTransformer if you select DTOs. The ResultTransformer is used to transform the Object[] result set into a custom DTOs, so it’s an alternative to the JPA constructor result.