EasyBeans

Support PersistenceUnit reference injection using only the @PersistenceUnit attribute "name".

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: EasyBeans 1.0 M2, EasyBeans 1.0 M1
  • Fix Version/s: EasyBeans 1.0 M4
  • Component/s: APIs
  • Description:
    Hide
      A PersistenceUnit reference can be injected using the annotation @PersistenceUnit. When there is
    only one persistent unit declared in the jar file, it is not mandatory to define the the attribute "unitName".
      In the case, which only the attribute "name" is specified, the injected resource can be found in the JNDI using the value of the attribute "name".

    Reference: EJB 3.0 Core Specification - 16.10.1.1
    Available tests: org.objectweb.easybeans.tests.environment.reference.persistenceunit.TestPersistenceUnitRefFieldInjection.test00
    org.objectweb.easybeans.tests.environment.reference.persistenceunit.TestPersistenceUnitRefMethodInjection.test00
    Show
      A PersistenceUnit reference can be injected using the annotation @PersistenceUnit. When there is only one persistent unit declared in the jar file, it is not mandatory to define the the attribute "unitName".   In the case, which only the attribute "name" is specified, the injected resource can be found in the JNDI using the value of the attribute "name". Reference: EJB 3.0 Core Specification - 16.10.1.1 Available tests: org.objectweb.easybeans.tests.environment.reference.persistenceunit.TestPersistenceUnitRefFieldInjection.test00 org.objectweb.easybeans.tests.environment.reference.persistenceunit.TestPersistenceUnitRefMethodInjection.test00

Activity

OW2 Bamboo View RSS feed

People

Dates

  • Created:
    26/Jul/06 1:45 PM
    Updated:
    01/May/08 8:11 PM
    Resolved:
    27/Sep/06 2:33 PM