« Return to Thread: Checked in: JPQL updates for COALESCE, NULLIF, and INDEX

Re: Checked in: Fix bug 269887

by Kevin Yuan-2 :: Rate this Message:

Reply to Author | View in Thread

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
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@...
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev

 « Return to Thread: Checked in: JPQL updates for COALESCE, NULLIF, and INDEX