IDEA 2016.2.1 Hibernate persistence mapping wizard not mapping primary keys correctly from PostgreSQL 9.5 instance

Answered

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?

2 comments
Comment actions Permalink

As update, when I removed the current project and created a new one, the wizard suddenly detected the primary/foreign keys.

0
Comment actions Permalink

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

0

Please sign in to leave a comment.