Open PolinaSannikova opened 6 years ago
Infamous "you must use left join for variables used in OR condition" EclipseLink problem as I understand this.
Yes, all the relations with . (like user.group) treated as inner join in EclipseLink. Unfortunately, there is no way to change this. You could use left join or sub query with OR as a workaround.
Environment
Description of the bug or enhancement
We are using the following filter:
When we put check marks in both "Assigned Driver" and "Assigned Vehicle", only device info for devices with both Assigned Driver and Assigned Vehicle are shown. The reason for that is the SQL query used when performing search with a filter - when check marks are put there, there are inner joins both for the TAXI_DRIVER table and TAXI_VEHICLE table, so only devices with both Assigned Driver and Assigned Vehicle are shown. SQL queries attached - one with both "Assigned Driver" and "Assigned Vehicle" ticked, the other only with "Assigned Vehicle" ticked.
assigned_driver_assigned_vehicle.txt assigned_vehicle.txt
Data model (relevant fields):
taxi$DriverDeviceInfo Table: TAXI_DRIVER_DEVICE_INFO
taxi$Device Table: TAXI_DEVICE
taxi$Driver Table: TAXI_DRIVER
taxi$Vehicle Table: TAXI_VEHICLE
The data model of relevant entities attached. datamodel_part.docx