请问用hibernate进行一对多查询时,查询一的那一方,多的哪一方设置条件查询如
public class Customer implements Serializable {
private long id;
private Calendar generatedTime;
private double price;
private Set<Order> orders;//订单
//getter and setter.......
}
public class Order implements Serializable {
private long id;
private String name;
private double price;
private Customer customer;
private boolean fee;
//getter and setter.......
}
在查询查询Customer 时,会查询对应的Order集合,可是我怎么设置在查询Customer 时设置Order的查询条件呢
------解决方案--------------------
http://lishibo613.blog.163.com/blog/static/116100391201010114314573/
希望对你有帮助