title: How to control JpaRepository for similar query
body: <p>I made an entity as below.</p>
  <pre><code>@Entity
  @Getter
  @Setter
  @Builder
  @AllArgsConstructor
  @NoArgsConstructor
  @ToString
  public class Lecture {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Integer id;
  
      @NotNull
      @Size(min = 1, max = 4096)
      private String title;
  
      @NotNull
      @Size(min = 1, max = 4096)
      private String link;
  
  
      @JsonIgnore
      @NotNull
      private boolean visible;
  }
  </code></pre>
  <p>And I used jpa repository.</p>
  <pre><code>public interface LectureRepository extends JpaRepository&lt;Lecture, Integer&gt; {
      Page&lt;LectureList&gt; findByVisible(boolean visible, Pageable pageable);
  }
  </code></pre>
  <p>And this is filter for list.</p>
  <pre><code>public interface LectureList {
      String getTitle();
  
      LocalDateTime getLink();
  
      Integer getId();
  
  }
  </code></pre>
  <p>So when I get return data by findByVisible query, it gives &quot;id, title, link&quot; without a problem.<BR>
  But I need other filter for another client. <br>
  For example, another repository should give me &quot;id, title&quot; field. <br>
  So I think I have to make another Repository File for this case. <br>
  Could I have a more simple solution for this? Could I make this query in the same repository file? <br></p>