0
I need to implement a dynamic query logic, in BD using JPQL, and I have 4 filters:
1 - PROJECT COORDINATOR
2 - SERVICE PROVIDER
3 - PROJECT START DATE
4 - FINAL DATE OF THE PROJECT
Any of the fields can be combined with each other, that is, can be selected COORDINATOR and INITIAL DATE, SUPPLIER and INITIAL DATE, and so on...
Tables are being managed by the respective Entities:
Projectntity contains the attribute "coordinator"
Planoentregaentity contains the attribute "supplier"
Entregaentity contains the attribute "initial date" and "final date".
I tried to implement Criteria (uaihebert, easycriteria, criteriabuilder and etc), but I did not have much success, if anyone has any indication, even initial Wue, I will be grateful.
But this search will return a list of which entity (Projectntity, Planoentregaentity or Entregaentity)?
– Marcus Martins