Search code examples
spring-bootspring-data-jpaspring-tool-suite

How to get suggestions in findBy method for data JPA in Spring Tool Suite


While writing this method in interface public List<Employee> findByEmpNameAndEmpSal(String name,Double sal); So After findByEmpName when i keep cursor then i should get suggestions like (and,or,in,GreaterThan,LessThan... many more). when i practice DataJPA concepts. I saw youtube video when i keep cursor after findByEmpName he was getting suggesstions. Now if you see below screenshot where my cursor after EmpName I want data using name and salary.

enter image description here


Solution

  • The existing auto complete support for Spring Data in Spring Tools 4 is very limited and doesn't provide the support that you mentioned yet. The corresponding enhancement request is: https://github.com/spring-projects/sts4/issues/107