java相关问题 dao层代码:
public class UserInfoDaoImpl implements UserInfoDao {
private SessionFactory sessionFactory;
Session session = HibernateUtil.getSession();
public void queryNumber(String name) {
System.out.println(name);
String sql = "select {a.*},{b.*} from userinfo a left join buyerin b on a.buyerid=b.buyerid where a.Aname=?";
List l = session.createSQLQuery(sql)