daoimpl代码:public List findZQx(final Integer id) { return this.getHibernateTemplate().executeFind(new HibernateCallback() { public Object doInHibernate(org.hibernate.Session session) throws HibernateException, SQLException { Query query = session .createSQLQuery("select * from A a inner join B b on a.id=b.id inner join C c on c.id=b.id where a.id=?"); query.setInteger(0, id); List list = query.list(); return list; } }); }得到结果是三个表的全部列
有没有条件限制啊?把三个表的实体封装成一个对象,返回这个对象。