[jboss-jira] [JBoss JIRA] (WFLY-9132) Applications won't deploy if their persistence.xml have multiple persistence units

Scott Marlow (JIRA) issues at jboss.org
Mon Sep 25 13:07:00 EDT 2017


     [ https://issues.jboss.org/browse/WFLY-9132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Marlow closed WFLY-9132.
------------------------------
    Resolution: Rejected


This isn't really a bug, the problem is that we are now expect the application to choose the default persistence unit via the "wildfly.jpa.default-unit" persistence unit hint.

> Applications won't deploy if their persistence.xml have multiple persistence units
> ----------------------------------------------------------------------------------
>
>                 Key: WFLY-9132
>                 URL: https://issues.jboss.org/browse/WFLY-9132
>             Project: WildFly
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 10.1.0.Final
>         Environment: Windows 10 64 bit
> Wildfly 10.1.0
>            Reporter: Bobby Bassman
>            Assignee: Scott Marlow
>
> Applications won't deploy if their persistence.xml have multiple persistence units. This was not a problem with EAP. Now, Wildfly requires that each @PersistenceContext have a 'unitName' parameter. WIth EAP 6.4, if a @PersistenceContext did not have a 'unitName' parameter, then the default PU was used. By requiring that @PersistenceUnit have 'unitName', developers are forced to unnecessarily bind Java code to configuration.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list