顯示具有 annotationException 標籤的文章。 顯示所有文章
顯示具有 annotationException 標籤的文章。 顯示所有文章

2011年8月11日 星期四

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

Simply check "Use Java 5 Syntax" as depicted in the attached Screenshot and Hibernate Tools generate the correct generic types for collections.

Reference: stackoverflow, mkyong