title: Hibernate Query on Entity Class
body: <p>I'm working with <code>Person.java.</code></p>
  
  <p>This Hibernate Entity does not have any fields marked <code>@Field.</code></p>
  
  <p>Another class, <code>Group.java</code> is an Entity that has fields marked <code>@Field</code>.</p>
  
  <pre><code>@Field
  private int id;
  </code></pre>
  
  <p>In this legacy code, I see queries for Group:</p>
  
  <pre><code>   getEntityManager().createQuery("delete from group g where g.id = 
  :inputId").setParameter("inputId", givenId).getSingleResult();
  </code></pre>
  
  <p>However, I'm not sure how to make a Hibernate query for an Entity that has no fields.</p>
  
  <p>Thanks,
  Kevin</p>