JPA 2.0: Adding entity classes to PersistenceUnit *from different jar* automatically

前端 未结 8 576
余生分开走
余生分开走 2020-11-29 02:23

I have a maven-built CDI-based Java SE app, which has a core module, and other modules.
Core has the persistence.xml and some entities. Modules hav

8条回答
  •  爱一瞬间的悲伤
    2020-11-29 02:51

    You can do use this concept: https://wiki.eclipse.org/Packaging_and_Deploying_EclipseLink_JPA_Applications_(ELUG)

    
       
            org.eclipse.persistence.jpa.PersistenceProvider
            mamcaPU
            /META-INF/common-layer-mappings.xml
        
    
    

    common-layer-mappings.xml

       
       
       
       
       
       
    
    

提交回复
热议问题