ITeye博客

2011 年文章归档

共 1 篇文章

Could not determine type for: java.util.Collection, at table: 解决

Could not determine type for: java.util.Collection, at table: 该错误有可能的原因是: 在实体类的属性中的annotation, 要么就全写在属性上,要么就全写在get方法上,不能混用。 @Entity @SequenceGenerator(name = "Person_Seq", sequenceName = "person_seq") public class Person implements Serializable { @Id @GeneratedValue(strategy = GenerationType.SEQUEN…

2011-12-12 13:38 · JPA