hibernate如何實現一個對象映射數據表的多行
lyq32 2008-09-12 05:45:01 hibernate如何實現一個對象映射數據表的多行?
例如:
數據庫:
id name email
1001 bill bill@microsoft.com
1002 microsoft null
person類:
class Person{
private Long id; //1001的前三位可以找到1002
private String personName; //對應bill
private String CompanyName; //對應microsoft
private String email;
}
請高手指教?