[forge-issues] [JBoss JIRA] (FORGE-372) Qualifier on Forge EntityManager

Daniel Sachse (Updated) (JIRA) jira-events at lists.jboss.org
Tue Dec 20 15:25:10 EST 2011


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

Daniel Sachse updated FORGE-372:
--------------------------------

              Status: Pull Request Sent  (was: Pull Request Sent)
    Git Pull Request: https://github.com/forge/plugin-seam-persistence/pull/2  (was: https://github.com/forge/plugin-seam-persistence/pull/1)


I now fixed it they way we discussed it.
I had to slightly change the api and the implementation a little bit more, thats why i raised the other following pullrequest:

https://github.com/forge/core/pull/86

Hope everything is fine as expected!

Thanks,

Daniel
                
> Qualifier on Forge EntityManager
> --------------------------------
>
>                 Key: FORGE-372
>                 URL: https://issues.jboss.org/browse/FORGE-372
>             Project: Forge
>          Issue Type: Enhancement
>          Components: Scaffold
>    Affects Versions: 1.0.0.Beta3
>            Reporter: Paul Dijou
>            Assignee: Daniel Sachse
>
> The EntityManager (same for the EntityManagerFactory) generated by Forge in org.metawidget.forge.persistence.DatasourceProducer has no Qualifier. It becomes a problem when I need to create my own EntityManager because they both have the @Default qualifier and CDI throws an exception. The only solution is to add a qualifier to my EntityManager but it bother me since I want it to be the default EntityManager.
> To reproduce the problem, just install the seam-persistence plugin, ask "seam-persistence install-managed-persistence-context" and it will generate another EntityManagerFactory with no qualifier and here is the CDI exception.
> Would it be possible to add a qualifier like "@ForgeEntityManager" and "@ForgeEntityManagerFactory" on the DatasourceProducer class ? (and, of course, on the PersistenceUtil class too). This way, if a user add it's own EntityManager, it well be the @Default.
> Thanks.

--
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 forge-issues mailing list