java.sql.SQLException: Field 'id' doesn't have a default value
实体
@Name
@Prev(els = { @EL("uuid(32)") })
protected String id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
页面提交
@Param("..")Comment comment
debug 提交过来的comment的id是null
然后
_insert(obj, true,false, false);
就报错了,哪里用法不对吗?