Hibernate ERROR: missing FROM-clause entry
<p>This is my entity class:</p>

<pre><code>@Entity
@Table(name = "authdata")
public class AuthData  {


    @Id
    @Column(name = "login")
    private String login;

    @Column(name = "password")
    private String password;

    @Column(name = "email;")
    private String email;

    public AuthData() {

    }
</code></pre>

<p>This is my DAO:</p>

<pre><code>@Override
public AuthData get() {
    return (AuthData) sessionFactory.getCurrentSession()
            .createQuery("from AuthData").uniqueResult();
}
</code></pre>

<p>This will happen, if I run <code>get()</code> method:</p>

<blockquote>
  <p>org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry
  for table "authdata0_"</p>
</blockquote>

<p>What is wrong? <code>authdata</code> table exists. </p>