org.hibernate.AnnotationException: Collection has neither generic type or OneToMany.targetEntity() defined: my.package.papertest

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via com.br by Unknown author, 2 years ago
Collection has neither generic type or OneToMany.targetEntity() defined: br.com.exemplo.cadastro.CadNivel01.cadNivel02s
via com.br by Unknown author, 2 years ago
Collection has neither generic type or OneToMany.targetEntity() defined: br.com.exemplo.cadastro.CadNivel01.cadNivel02s
org.hibernate.AnnotationException: Collection has neither generic type or OneToMany.targetEntity() defined: my.package.papertest
at org.hibernate.cfg.annotations.CollectionBinder.getCollectionType(CollectionBinder.java:347)
at org.hibernate.cfg.annotations.CollectionBinder.bind(CollectionBinder.java:304)
at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1208)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:651)

Users with the same issue

Once, 1 week ago
11 times, 3 months ago
3 times, 10 months ago
6 times, 8 months ago
2 times, 2 weeks ago

Write tip

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