Sql sql = Sqls.fetchInt("select ii from test where key=@value").setParam("value",1);
this.dao.execute(sql);
sql.getInt();
这样能查到数据
Sql sql = Sqls.create("select ii from test where key=@value").setParam("value",1);
this.dao.execute(sql);
sql.getInt();
报错空对象
设置callback也不行
Sql sql = Sqls.create("select ii from test where key=@value").setParam("value",1);
sql.setCallback(Sqls.callback.entities());
sql.setEntity(this.dao.getEntity(Integer.class));
this.dao.execute(sql);
sql.getInt();
org.nutz.dao.DaoException: Need non-arg constructor : class java.lang.Integer
Sql sql = Sqls.fetchInt("select ii from test where key=@value").setParam("value",1);
this.dao.execute(sql);
sql.getInt();
Sql sql = Sqls.fetchInt("select ii from test where key=@value").setParam("value",1);
this.dao.execute(sql);
sql.getInt();