2012-10-05 14 views

回答

1

這是可能的xml映射。無法通過註釋來實現這一點。

0

你可以用類映射entity-name屬性做到這一點。檢查相同的documentation here

引述文件:

entity-name (optional - defaults to the class name): Hibernate3 allows a class to be mapped 
multiple times, potentially to different tables 

這裏是相同的使用情況another example

相關問題