[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] Checked in: Fix bug 269887

Based on the document for @PersistenceContext reference here http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html#PersistenceContext .

Should be using unitName attribute and not the name attribute in org.eclipse.persistence.testing.models.jpa.sessionbean.EmployeeServiceBean.java, in this case. So the bean should be changed to:
@PersistenceContext(unitName="sessionbean")


By the way, the PU name should be sessionbean, not fieldaccess.

Tested on WebLogic 10.3.1 and JBoss-5.0.1.GA
Code reviewed by Yiping Zhao.
Checked in EclipseLink 2.0   (revision: 4994)
                                   1.2   (revision: 4996)
                                  1.1.3 (revision: 4995)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=269887