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 @Id
.
When deploying, Hibernate complains about the missing @Id
. How can I work around this?