JPA: Entity without an ID

JPA: Entity without an ID

A problem that I’ve recently encountered myself not so long ago, I wanted to know how to query a table that essentially had no ID/primary key column. I had to do this since the table(s)/view(s) that I needed to query could be considered legacy, they perform rather poorly & generally, from a DB perspective need…