问题 I want to assign the result of a query to a DTO object. The DTO looks like this: @Getter @Setter @NoArgsConstructor public class Metric { private int share; private int shareholder; public Metric(int share, int shareholder) { this.share = share; this.shareholder = shareholder; } } And the query looks like the following: @RepositoryRestResource(collectionResourceRel = "shareholders", path = "shareholders") public interface ShareholderRepository extends PagingAndSortingRepository<Shareholder,