[jboss-jira] [JBoss JIRA] (AS7-2275) Deployment error should result when ambiguous injection is specified
jaikiran pai (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Oct 26 23:45:45 EDT 2011
[ https://issues.jboss.org/browse/AS7-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637872#comment-12637872 ]
jaikiran pai commented on AS7-2275:
-----------------------------------
I think Stuart meant that we throw an ERROR if there is *more than one PU* which gets resolved when the unitName is missing. IMO, that's a good idea since that would prevent random PUs being picked up (especially on redeployment).
> 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
>
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list