//....some code
Query query = table.createQuery();
//where name=? or name = ?
query.where("name","张三").or("name","李四").list();
//where name=? and (name=? or name=?)
query.where("name","张三")
.nest("name","李四").or("name","王五").end()
.list();
// where name like ?
query.where().sql("name like ?","张三").list();
duguhan520 / hsweb-easy-orm Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hs-web/hsweb-easy-orm
简单的orm工具,为动态表单而生