Skip to content

Commit

Permalink
Merge pull request #1245 from scottmarlow/tckrefactor_criteria-result…
Browse files Browse the repository at this point in the history
…-type-validation

jakartaee/persistence#579, wrong query result type (manual merge made…
  • Loading branch information
scottmarlow authored Mar 6, 2024
2 parents 8f10037 + 3a2eed1 commit 0a09a7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void fromGetMapAttributeTest() throws Exception {

getEntityTransaction().begin();

CriteriaQuery cquery = cbuilder.createQuery(Expression.class);
CriteriaQuery cquery = cbuilder.createQuery(Employee.class);
From<Department, Department> department = cquery.from(Department.class);
cquery.where(cbuilder.equal(department.get("id"), 1));
cquery.select(department.get(Department_.lastNameEmployees));
Expand Down Expand Up @@ -361,7 +361,7 @@ public void pathGetMapAttributeTest() throws Exception {

getEntityTransaction().begin();

CriteriaQuery cquery = cbuilder.createQuery(Expression.class);
CriteriaQuery cquery = cbuilder.createQuery(Employee.class);
Path<Department> department = cquery.from(Department.class);
cquery.where(cbuilder.equal(department.get("id"), 1));
cquery.select(department.get(Department_.lastNameEmployees));
Expand Down

0 comments on commit 0a09a7c

Please sign in to comment.