title: How to find some data through many id?
body: <p>I have ID array type. ex) Long id = [1, 3, 5]
  Then how to find the data use array type id?</p>
  
  <p>Array data type not applicable to findById() method.
  So i tried loop function.
  But this style is not good to performance Because it is execute the method several times for id's length.</p>
  
  <pre><code>Long id = [1, 3, 5];
  
  for (int i = 0; i &lt; id.length; i++) {
      repository.findById(id[i]);
  }
  </code></pre>
  
  <p>Board Table</p>
  
  <p>id    | title    | content</p>
  
  <p>==============================</p>
  
  <p>1    | A...     | A is...</p>
  
  <p>2    | B...     | B is...</p>
  
  <p>3    | C...     | C is...</p>
  
  <p>4    | D...     | D is...</p>
  
  <p>5    | E...     | E is...</p>
  
  <p>I want same result use JPA method(NOT Native Query Style) below query.</p>
  
  <p>SELECT 
      title, 
      content
  FROM Board
  WHERE id = 1, or id = 3, or id = 5;</p>
  
  <p>Result </p>
  
  <p>id    | title    | content</p>
  
  <p>==============================</p>
  
  <p>1    | A...     | A is...</p>
  
  <p>3    | C...     | C is...</p>
  
  <p>5    | E...     | E is...</p>