Inner Join with hibernate and HQL
时间:2010-07-18 来源:extJS2
String queryString = "from Order o inner join fetch o.items as itm" + " where o.identifier = :id" (Order) getSession.createQuery(queryString) .setLong("id", someOrder.getIdentifier()) .list(); // Classes: Class Order private OrderItem item;
相关阅读 更多 +