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

沒有留言:

張貼留言