Entity « Jar « JPA Q&A





1. Unable to dispatch entities in diffrent jars for the same PU    forum.hibernate.org

Splitting entities amongst several JARs is definitely supported by JPA 2, you need to use the element in persistence.xml (or to a lesser extend ). Merging several persistence.xml and considering them one is not a concept that makes sense in the JPA 2 spec. Conceptually that means a lot of metadata duplication that can and will conflict. The exception you ...