I\'ve got a problem with @MapsId annotation and @EmbeddedId. When running a code in Hibernate I get:
Caused by: org.hibernate.Pr
See this issue. It simply states that
org.hibernate.PropertyAccessException may be thrown if an Entity contains the following conditions:
- Uses @EmbeddedId
- Uses @JoinTable on a collection or association property/field, which references another property/field of the entity.
As you see, the only 'workaround' suggested so far is Do not use @EmbeddedId, which is kind of weird.