0

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

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.