title: Hibernate User table not mapped error in HQL query
body: <p>I have the following issue:
  When trying to make a get request to the /api/users endpoint of my application, I get the following error:
  <em>org.hibernate.hql.internal.ast.QuerySyntaxException: User is not mapped</em></p>
  <p>Here is the code in my class User:</p>
  <pre><code>@Entity
  @Table(name = &quot;users&quot;)
  public class User 
  </code></pre>
  <p>And here is the query:</p>
  <pre><code>session.createQuery(&quot;from User&quot;, User.class);
  </code></pre>
  <p>Any help would be greatly appreciated!</p>