您正在使用 (由@Id注释确定)。将任何与JPA相关的注释放在每个字段的上方,而不是getter属性的上方
@OneToMany(targetEntity=Student.class, mappedBy="college", fetch=FetchType.EAGER)
private List<Student> students;
org.hibernate.MappingException:无法确定类型:java.util.List,在表:College,用于列:[org.hibernate.mapping.Column(students)]
您正在使用 (由@Id注释确定)。将任何与JPA相关的注释放在每个字段的上方,而不是getter属性的上方
@OneToMany(targetEntity=Student.class, mappedBy="college", fetch=FetchType.EAGER)
private List<Student> students;