查询语句 驴唇不对马嘴
本来想通过id查询客户对象,结果写成了
return this.getHibernateTemplate().find("from Customer", cust_id); return this.getHibernateTemplate().get(Customer.class, cust_id);
查询语句 驴唇不对马嘴
本来想通过id查询客户对象,结果写成了
return this.getHibernateTemplate().find("from Customer", cust_id); return this.getHibernateTemplate().get(Customer.class, cust_id);