title: Get List of Entity Objects with Input List : Spring Data JPA - Hibernate
body: <p>I have a List of APIObjects <code>List&lt;APIObjects&gt; apiObjectList</code> as an Input to my API (through HTTP-Post), I need to check all the parameters within this Object exists in my Database </p>
  
  <p><strong>DatabaseObject.java</strong></p>
  
  <pre><code>@Data
  @Builder
  @NoArgsConstructor
  @AllArgsConstructor
  @Entity
  @Table(name = "my_table")
  public class DatabaseObject {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      Long id;
  
      @Column(name = "name")
      String name;
  
      @Column(name = "group_id")
      String groupId;
  
      @Column(name = "artifact_id")
      String artifactId;
  
      @Column(name = "version")
      String version;
   }
  </code></pre>
  
  <p><strong>APIObject.java</strong></p>
  
  <pre><code>@Data
  @NoArgsConstructor
  @AllArgsConstructor
  @Builder
  public class APIObject{
      private String groupId;
      private String artifactId;
      private String version;
  }
  </code></pre>
  
  <p>In my <code>Repository Interface</code> i have a method like this</p>
  
  <pre><code>List&lt;DatabaseObject&gt; findByGroupIdAndArtifactIdAndVersionIn (List&lt;APIobject&gt; apiList);
  </code></pre>
  
  <p>But i get this exception</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: No parameter available for part artifactId SIMPLE_PROPERTY (1): [Is, Equals].
  </code></pre>
  
  <p>How to write a <code>Spring-data-JPA</code> method for this ? All the three parameters should match <code>(groupid, artifactid and version)</code></p>