title: How to get specific fields from OneToOne relation?
body: <p>I have Result entity and User entity and they are linked via @OneToOne annotation:</p>
  
  <pre><code>@OneToOne
  @MapsId
  private User user;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>@OneToOne(mappedBy = "user", cascade = CascadeType.ALL)
  private Result result;
  </code></pre>
  
  <p>but when I try to get all results via ajax:</p>
  
  <pre><code>resultRepo.findAll()
  </code></pre>
  
  <p>results are coming with users with all user fields including password and etc. How to get only specific fields from User entity when I request all results ?</p>