Hibernate让Model支持关联扩展属性:

select new Jxc(a,b.mc) from Jxc as a,btb as b

在Model中创建构造方法:

Jxc(Jxc jxc ,String mc){
BeanUtilsBean.getInstance().copyProperties(this, jxc);
this.setMc(mc);
}

给Model设备transient属性:
@Transient
public String getMc() {
return mc;
}
public void setMc(String value) {
this.mc = value;
}

相关文章:

  • 2021-06-28
  • 2021-07-06
  • 2021-05-10
  • 2021-09-16
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-08-28
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
相关资源
相似解决方案