Is there any way to add Specification for a custom JPQL
query like below :
I am able to create custom jpql, but not sure how to add additional specification conditions to it. I need to add specification dynamically.
EmployeeRepository.java
@Query(value = "select new . EmployeePojo(c.employee_id, d.deplt_id) from Employee c left join c.dept d where c.id =1")
Page<EmployeePojo> getData(Pageable request);
I should add specification to above custom jpql