[
https://issues.jboss.org/browse/JBIDE-9400?page=com.atlassian.jira.plugin...
]
Alexey Kazakov updated JBIDE-9400:
----------------------------------
Issue Type: Feature Request (was: Bug)
Fix Version/s: 3.3.x
What we should do:
If there is a Seam Persistence module in the project classpath
(org.jboss.seam.persistence.ManagedPersistenceContextExtension extension) and
ExtensionManaged producer is defined in the project then we should provide a built-in bean
with EntityManager type and qualifiers and scope defined for this producer. See an example
of such a producer:
{code}
@ExtensionManaged
@Produces
@PersistenceUnit
@ConversationScoped
EntityManagerFactory producerField;
{code}
where @ExtensionManaged indicates that this producer forces Seam to provide an
EntityManager bean with the listed qualifiers and scope.
There may be a few producers for EntityManagerFactory with different set of qualifiers. So
we also should provide the corresponding bean for every producer.
If such a producer has SessionFactory type instead of EntityManagerFactor and there is
org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtension extension in the
project classpath then we should provide Session bean instead of EntityManager.
Tooling shows warning for Seam 3 Persistence created EntityManager
injection
----------------------------------------------------------------------------
Key: JBIDE-9400
URL:
https://issues.jboss.org/browse/JBIDE-9400
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: cdi (jsr-299)
Affects Versions: 3.3.0.M2
Reporter: Cody Lerum
Assignee: Alexey Kazakov
Fix For: 3.3.x
Create SMPC in Seam 3 Persistence module as shown here
http://docs.jboss.org/seam/3/persistence/latest/reference/en-US/html/pers...
@Inject
EntityManager em;
Shows "No bean is eligible for injection to the injection point [JSR-299
ยง5.2.1]" warning
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira