给出一个不是JavaBean 的类:
public class Thing {
private boolean _private;
public boolean isPrivate() {
return _private;
}
}
如何绑定到SQL对象中的成员_private
?
@SqlUpdate
public void insertThing(BindBean("thing") Thing theThing)
这些都不起作用:
insert into things (is_private) values (:thing._private);
insert into things (is_private) values (:thing.private);
insert into things (is_private) values (:thing.isPrivate);