When creating an @Entity mapping a table my IDE notifies me: Persistent entity '*******' should have primary key
.
But the table in the DB doesn't have an ID (I think it's bad but it's legacy which I've no permissions to fix)
What should I do? Will it work if I just omit the ID field? Or should I make up an ID which is not mapped on the table but satisfy the code?