解决办法:在属性的get方法上加上一段注解标识它是临时属性,不是数据库字段就OK
@Transient
public List<Reverts> getChildList() {
return childList;
}
public void setChildList(List<Reverts> childList) {
this.childList = childList;
}

记得导入的是:import javax.persistence.Transient;

 

相关文章:

  • 2021-07-03
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-03-10
  • 2021-12-31
相关资源
相似解决方案