looking for some solutions? You are welcome.

SOLVED: why my mysql query is not working in JPA?

Madhusudhan Aradya:
@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 ? = ?



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent