Java Reference
In-Depth Information
Listing 13.7. Structure of a JAR containing JPA entities
The configuration file exists as META-INF/persistence.xml
and the entity classes are
in their package subdirectory
.
EJB-JAR
If you want to include JPA entities in your EJB-JAR module, packaging is identical to how
it's done for a plain JAR archive. The following listing shows how to package JPA inside
an EJB-JAR module.
Listing 13.8. Structure of an EJB-JAR containing JPA entities
 
Search WWH ::




Custom Search