Community
Participate
Working Groups
Build Identifier: eclipselink-2.3.0.v20110604-r9504 Using the entity: @Entity @Table(name = "EMPLOYEE") public class Employee implements java.io.Serializable, Comparable<Employee> { private int id; private String firstName; public Employee() { } public Employee(int id, String firstName) { this.id = id; this.firstName = firstName; } // =========================================================== // getters and setters for the state fields @Id @Column(name = "ID") public int getId() { return id; } public void setId(int id) { this.id = id; } @Column(name = "FIRSTNAME") public String getFirstName() { return firstName; } ---------------- Client Code: Query q = em.createQuery( "select e from Employee e where e.firstName = ?1").setParameter(1, "Stephen"); Parameter p = q.getParameter(1, String.class); String s = p.getName(); if (s != null) { System.out.println("getName() - Expected:null, actual:" + s); } --------------- Output: getName() - Expected:null, actual:1 Reproducible: Always
Updating target milestone.
Created attachment 226531 [details] proposed fix
Fix for JPA 2.1 Query Parameter Bugs 357089, 366526, 366530, 366576 checked in together Reviewed by Guy Pelletier Added QueryTestSuite to JPA 2.1 testing Tested with JPA LRG
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink