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

Hibernate JIRA | Christian Bauer | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.

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