title: Don't get info from db with spring jpa
body: <p>I'm trying to get data from Oracle.</p>
  
  <p>I have <code>@OneToMany</code> relation in class <em>"Home"</em></p>
  
  <pre><code>@OneToMany(cascade = CascadeType.ALL)
  @JoinColumn(name = "obj_id", referencedColumnName = "obj_id", insertable = false, updatable = false)
  private List&lt;Room&gt; roomCollection;
  </code></pre>
  
  <p>I have this repository:</p>
  
  <pre><code>    @Repository
      public interface FkvaRepository extends JpaRepository&lt;ROOM, Long&gt; {
  
      @Query(value = "SELECT * FROM ROOM WHERE OBJ_ID=?1", nativeQuery = true)
      List&lt;ROOM&gt; findAllByObjectId(Long id);
  }
  </code></pre>
  
  <p>I have a controller which get all rooms by home id:</p>
  
  <pre><code>@RequestMapping(value = "/room/{id}",
              method = RequestMethod.GET,
              produces = { MediaType.APPLICATION_JSON_VALUE })
      public List&lt;Room&gt; getRoom(@PathVariable(name = "id") Long id) {
  
          List&lt;Room&gt; roomCollection = roomRepository.findAllByObjectId(id);
          return roomCollection;
      }
  </code></pre>
  
  <p>But when I tried</p>
  
  <pre><code>http://localhost:9000/room/466
  </code></pre>
  
  <p>I have the correct count of room objects in the result, but all of them are duplicate of the first.</p>
  
  <p>How could I fix it?</p>