BAEL-2804 JPA Query Parameters Usage

Fix givenEmpNumber_whenUsingPositionalParameter_thenReturnExpectedEmployee
test case after adjustemnts.
This commit is contained in:
glopez 2019-06-17 07:42:48 -03:00
parent 6aec4a6e0f
commit 07adfc9e70
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}