title: JPA Query Entity not mapped error
body: <p>Testing is not passing in the following code. Debugging shows the error is in the creation of the query.</p>
  
  <pre><code>java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Catalog is not mapped [SELECT c FROM Catalog c WHERE c.name = :name]
  at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1347)
  at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1288)
  </code></pre>
  
  <p>Entity class:</p>
  
  <pre><code>@Entity
  @Table(name = "eb_catalog", uniqueConstraints=@UniqueConstraint(columnNames="name"))
  public class Catalog implements ICatalog, Serializable {
  </code></pre>
  
  <p>and the query itself: </p>
  
  <pre><code>TypedQuery&lt;Catalog&gt; query = em.createQuery(
  "SELECT c FROM Catalog c WHERE c.name = :name", Catalog.class)
  .setParameter("name", catName);
  </code></pre>
  
  <p>CTRL + click on Catalog is opening the entity, so the name matches the entity in the query. </p>
  
  <p>thanks in advance.</p>