BAEL-2804 JPA Query Parameters Usage
Fix givenEmpNumber_whenUsingPositionalParameter_thenReturnExpectedEmployee test case after adjustemnts.
This commit is contained in:
parent
6aec4a6e0f
commit
07adfc9e70
|
@ -37,7 +37,7 @@ public class JPAQueryParamsUnitTest {
|
|||
TypedQuery<Employee> query = entityManager.createQuery(
|
||||
"SELECT e FROM Employee e WHERE e.empNumber = ?1" , Employee.class);
|
||||
String empNumber = "A123";
|
||||
Employee employee = query.setParameter(0, empNumber).getSingleResult();
|
||||
Employee employee = query.setParameter(1, empNumber).getSingleResult();
|
||||
Assert.assertNotNull("Employee not found", employee);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue