????D?? setProperties()??????
??????Hibernate?п??????setProperties()?????????????????????????????????????????3??????
????Customer customer=new Customer();
????customer.setName(“pansl”);
????customer.setAge(80);
????Query query=session.createQuery(“from Customer c where c.name=:name and c.age=:age ”);
????query.setProperties(customer);
????setProperties()???????????customer?????????????????????????????????????????????????????????????????????????
??????????????????setEntity()?????????????????????????????????????????????????????
????Customer customer=(Customer)session.load(Customer.class??”1”);
????Query query=session.createQuery(“from Order order where order.customer=:customer ”);
????query. setEntity(“customer”??customer);
????List list=query.list();
????????????????????????μ?SQL???
????Select * from order where customer_ID=’1’;