更新时间:2023-11-17 23:35:10
您可以将您的persistence.xml连同您的实体类一起放入一个单独的jar文件中,并将其放入您的EAR的/ lib文件夹中。
You can put your persistence.xml along with your entity classes into a separate jar that you put in the /lib folder of you EAR.
yourEar.ear
|
|_ yourEjb.jar
|
|_ yourWeb.war
|
|_ lib
|
|_ yourPersistence.jar
|
|_ META-INF/persistence.xml
|
|_ yourEntity.class