Unexpected results if queries are used for embedded objects with RHDG
Issue
- assuming this playground project is used there are unexpected matches for a query. The query should only find an employee with a name AND the given age. Why it returns any result?
Query from playground.Company c where c.employee.name = 'Wolf' and c.employee.age < 100 : found 1 matches
Company[id=1, name='Red Hat, stock =true, employees 2]
Employees:
Person{id=1, name='Wolf, age='127, engaged='true, email=wf@redhat.com]
Person{id=2, name='William, age='17, engaged='true, email=m@redhat.com]
Environment
- Red Hat Data Grid (RHDG)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.