title: JPA - An identification variable must be provided for a range variable declaration
body: <p>I wonder why I got "An identification variable must be provided for a range variable declaration." error when I don't have alias.<br>
  Seems like I solved by problem when I added alias to the table.<br></p>
  
  <p>Code with problem:</p>
  
  <pre><code>List result = entityManager.createQuery( "from Rental", Rental.class ).getResultList();
  </code></pre>
  
  <p>Solution:</p>
  
  <pre><code>List result = entityManager.createQuery( "from Rental r", Rental.class ).getResultList();
  </code></pre>