IDEA 2016.2.1 Hibernate persistence mapping wizard not mapping primary keys correctly from PostgreSQL 9.5 instance
已回答
The IDEA 2016.2.1 Hibernate persistence mapping wizard is not mapping primary keys correctly from PostgreSQL 9.5 instance into the generated POJO classes. Checking Generate JPA Annotations (Java5) doesn't make a difference. All generated POJO classes exhibit the error, Persistent entity '<entity name>' should have primary key.
Is there a workaround other than manually adding the annotations?
请先登录再写评论。
As update, when I removed the current project and created a new one, the wizard suddenly detected the primary/foreign keys.
Hi Anthony,
I have the same issue (Idea 2016.2.4. PostgreSQL 9.5), but re-creation of the project doesn't help. Have you made any specific settings or smth else to make it running?
Thanks