title: Hibernate/persistence without @Id
body: <p>I have a database view that yields a result set that has no true primary key. I want to use Hibernate/Persistence to map this result set onto Java objects. Of course, because there is no PK, I cannot decorate any field with <code>@Id</code>.</p>
  
  <p>When deploying, Hibernate complains about the missing <code>@Id</code>. How can I work around this?</p>