org.hibernate.AnnotationException: Collection of elements must not have mappedBy or association reference an unmapped entity: com.wotif.jaguar.domain.booking.Booking.bookingInvoices

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 Robert Watkins, 1 year ago
Collection of elements must not have mappedBy or association reference an unmapped entity: com.wotif.jaguar.domain.booking.Booking.bookingInvoices
via Hibernate JIRA by Robert Watkins, 1 year ago
Collection of elements must not have mappedBy or association reference an unmapped entity: com.wotif.jaguar.domain.booking.Booking.bookingInvoices
via Stack Overflow by Dave
, 2 years ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: org.mainco.subco.pd.domain.TrainingSessionTeacher.subjects[java.lang.String]
via Stack Overflow by Jerry Schirmer
, 2 years ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: cars.AutoDealership.vehicle[cars.Vehicle]
via Stack Overflow by Marco
, 1 year ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: model.pojos.Wheelchair.materials[model.pojos.Material]
via Stack Overflow by Valter Henrique
, 1 year ago
Use of @OneToMany or @ManyToMany targeting an unmapped class: com.bytecode.entities.Event.categorytagit[com.bytecode.entities.Categorytagit]
org.hibernate.AnnotationException: Collection of elements must not have mappedBy or association reference an unmapped entity: com.wotif.jaguar.domain.booking.Booking.bookingInvoices
at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:703)
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:421)
at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:382)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35)
at org.hibernate.cfg.annotations.CollectionBinder.bind(CollectionBinder.java:331)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1296)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:629)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:276)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:210)
at com.wotif.jaguar.util.HibernateTestUtil.buildSesssionFactory(HibernateTestUtil.java:131)

Users with the same issue

7 times, 1 week ago
2 times, 3 months ago
Once, 7 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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