hibernatejpareverse-engineeringhibernate-toolshbm2java

Hibernate reverse engineering primary keys (EmbeddedId to IdClass)


I am using hbm2java (hibernate3-maven-plugin) in order to generate entities.

How do I switch the auto generated @EmbeddedId to @IdClass?

Thanks


Solution

  • The hibernate maven plugin doesn't do that automatically, you need to update your classes manually if you want to use @IdClass.