org.hibernate.AnnotationException: Cannot mix @javax.persistence.MakKey and @org.hibernate.annotations.MapKey on the same collection: SingleClassTestCase$Parent.children

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Heiko Briebrecher, 1 year ago
Cannot mix @javax.persistence.MakKey and @org.hibernate.annotations.MapKey on the same collection: SingleClassTestCase$Parent.children
via Hibernate JIRA by Heiko Briebrecher, 1 year ago
Cannot mix @javax.persistence.MakKey and @org.hibernate.annotations.MapKey on the same collection: SingleClassTestCase$Parent.children
via blogspot.com by Unknown author, 1 year ago
A sorted collection has to define @Sort: model.ItemSortedMap.images
org.hibernate.AnnotationException: Cannot mix @javax.persistence.MakKey and @org.hibernate.annotations.MapKey on the same collection: SingleClassTestCase$Parent.children
at org.hibernate.cfg.annotations.CollectionBinder.bind(CollectionBinder.java:258)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1367)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:650)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:326)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:238)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.