Spring2之Lookup Method Injection(查找方法注入) 阅读全文>
发表于 @ 2008年01月10日 15:10:00|收藏
与对象属性绑定Hx hx = new Hx();hx.setAge("33");List list = session.createQuery("from Hx as c where c.age=:age").setProperties(hx).list();SQL内连接内连接就是传统的连接操作,用join连接关联表,on作为连接条件,where指定其他限定条件的查询如:select hx.name,hx.age,hxhome.home from hx join hxhome on hx.id=hxhome.hxidSQL左外连接在结果表中包含第一个表中满足的所有纪录,如果是在连接条件上匹配纪录,则第二个表返回相应的值,否则第二个表返回空值。阅读全文>
发表于 @ 2007年08月15日 15:53:00|收藏