org.hibernate.PropertyAccessException: Exception occurred inside getter of xx

org.hibernate.PropertyAccessException: Exception occurred inside getter of xx 错误原因
getterXX的返回类型和xx的类型不一致,比如:

....

//声明的是原生类型
private boolean open;


//get返回类型确实封装类型
public Boolean getOpen(){
  return this.open;
}

...

 

转载于:https://my.oschina.net/icoderme/blog/2996711