@Query(value = "select * from employee where ? = ?", nativeQuery = true)
public List<Employee> getEmployees(String key, String value);
The Structure of Employee is
Id
Age
Name
when i call getEmployees with("Age",21) im getting List with zero length. in the console the query is displayed as
select * from employee where ? = ?