Exception in thread "main" org.hibernate.AnnotationException: List/array has to be annotated with an

Hibernate:Exception in thread "main" org.hibernate.AnnotationException: List/array has to be annotated with an @OrderColumn (or @IndexColumn): com.mao.PersonArray.school

解决方案:

在你的持久化类中添加:@OrderColumn注解重新运行



你可能感兴趣的:(Hibernate,OrderColumn,annotated,IndexColumn)