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

Hibernate JIRA | Christian Bauer | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. org.hibernate.AnnotationException

    Collection has neither generic type or OneToMany.targetEntity() defined

    at org.hibernate.cfg.annotations.AbstractCollectionBinder.getCollectionType()
  2. Hibernate
    AbstractCollectionBinder.getCollectionType
    1. org.hibernate.cfg.annotations.AbstractCollectionBinder.getCollectionType(AbstractCollectionBinder.java:272)
    1 frame