一些代码:
`public class Test extends Model {
@Id
public Integer id;
public String name;
public Double roomFee;
}`
inDataBase:name 'candy' ; id 1; roomFee 200.5
;
然后我想更新roomFee = Null,所以来自web front params test.name ='changeName',test.id = 1
当我得到modle(test:test.name ='changeName',test.id = 1; test.roomFee = null)时,
执行test.update()
后 inDataBase:的 name 'changeName' ; id 1; roomFee 200.5
;
列roomFee(为空)不更新为null
为什么Ebean不更新列(为空)?如何更新column = null