persistence.xml 檔

JPA 規格需要使用 persistence.xml 檔才能部署。這個檔案定義一些資料庫與實體管理程式選項,並且可能包含多個持續性單元。為了讓您更容易編輯這項資訊,Dali 提供了 persistence.xml 編輯器。或者,您也可以使用「Eclipse XML 編輯器」來建立與維護這項資訊。如需相關資訊,請參閱管理 persistence.xml 檔


提示:

如果要使用多個持續性單元,請在 persistence.xml 中,除了保留一個外,將其他所有的持續性單元註銷。

相關作業

管理 persistence.xml 檔
建立新的 JPA 專案