[
https://issues.jboss.org/browse/AS7-2275?page=com.atlassian.jira.plugin.s...
]
Scott Marlow commented on AS7-2275:
-----------------------------------
https://github.com/wildfly/wildfly/pull/4675 is merged to WildFly 8. As noted above, the
deployment will still fail if ambiguous injection is specified. One improvement is that
we now have DEBUG logging that shows the class/annotation information. The other
improvement is that the persistence.xml may specify the 'wildfly.jpa.default-unit'
hint for the persistence unit that should be used when no name is specified (only works if
this hint is specified for exactly once persistence unit).
Deployment error should result when ambiguous injection is specified
--------------------------------------------------------------------
Key: AS7-2275
URL:
https://issues.jboss.org/browse/AS7-2275
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Reporter: Stuart Douglas
Assignee: Scott Marlow
Fix For: 7.1.0.Beta1
If no name is specified PersistenceUnitSearch.resolvePersistenceUnitSupplier will return
a PU at random, rather than throwing an exception if more than one PU is found.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira