title: Error: Cannot create TypedQuery for query with more than one return
body: <p>I try to do the function searchBook with java and jpa. I have 2 classes which are Media and Book. Book extends Media. And I keep the data in the different table. I try to select the data from the query below:</p>
  
  <pre><code>TypedQuery&lt;Media&gt; query = em.createQuery(
                  "SELECT m.title, b.isbn, b.authors"
                          + " FROM Book b, Media m" + " WHERE b.isbn = :isbn"
                          + " OR lower(m.title) LIKE :title"
                          + " OR b.authors LIKE :authors", Media.class);
          query.setParameter("isbn", book.getisbn());
          query.setParameter("title", "%" + book.getTitle().toLowerCase()
                  + "%");
          query.setParameter("authors", "%" + book.getAuthors() + "%");
          bookList = query.getResultList();
  </code></pre>
  
  <p>But I got the error:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: Cannot create TypedQuery for query
    with more than one return</p>
  </blockquote>
  
  <p>This is the first time I use JPA. I can't find the the mistake.</p>