[jboss-jira] [JBoss JIRA] (AS7-2275) Deployment error should result when ambiguous injection is specified
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Tue Jun 18 22:57:21 EDT 2013
[ https://issues.jboss.org/browse/AS7-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782729#comment-12782729 ]
Scott Marlow commented on AS7-2275:
-----------------------------------
[~jaikiran] [~stuartdouglas] it has been a few years since we discussed this change. The JPA specification does not require us to fail the deployment when applications fail to specify which persistence unit should be used. I think that it would be better to make this a warning, which I will create a pull request for doing (via WFLY-1032). By "better", I mean it will be easier to migrate applications to WildFly.
Since the pull request will be against WFLY-1032, could everyone please comment there.
> 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
More information about the jboss-jira
mailing list