实体类赋值
TSFunction 是菜单的实体类,private TSFunction TSFunction;//父菜单
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "parentfunctionid")
public TSFunction getTSFunction() {
return this.TSFunction;
}
public void setTSFunction(TSFunction TSFunction) {
this.TSFunction = TSFunction;
}
,在查询的时候我想给parentfunctionid赋值,这种写法要怎么赋值呢?请指点!!!
页:
[1]