hibernate报错:
Could not determine type for: java.util.Set
解决:
实体类中的所有注解,要么全写在属性上,要么全写在get方法上,绝对不要有的写在属性上有的写在get方法上
public A {
@Column
private String t;
public String getT(){
return t;
}
public void setT(String t){
this.t=t;
}
}
public B {
private String t;
@Column
public String getT(){
return t;
}
public void setT(String t){
this.t=t;
}
}