public class Contact {
private String name;
private String phone;
}
public class Order {
Collection<Contact> contacts;
}
public class Department {
Collection<Contact> contacts;
}
我有这三个类,我想创建hibernate xml映射文件。 如图所示,我在Order中有多个(单向)一对多映射,而Department在同一个类中有Contact,Contact。如何为这三个创建映射文件?