Spring Data Jpa Repositories Autocomplete "findBy..." methods not working with Spring Boot(13.1) Follow
Yesterday i was testing Spring Boot and other Spring related things in the 13.1 version of IntellijIdea.
Does anyone knows how to configure Spring Data Jpa to get autocomplete "findBy..." methods in repositories?? Or it isnt implementated yet?
Thanks and sorry for my english!
Please sign in to leave a comment.
Intellij 13.1.6 (same for 14.0.1) Ultimate
OS X 10.9.5
given this project as example:
The project contains:
- A Todo domain class
- A spring data jpa TodoRepository
The Todo class contains fields like description and title.
I would expect an autocomplete feature in the TodoRepository class for methods like findByDescr... findByTit... where Description or Title can be autocompleted, but it's not available.
Additional the Todo Entity class is not recognized in the HQL query. As follow up error there is no autocomplete on the "t" alias.
Looking at feature description: http://blog.jetbrains.com/idea/2011/11/enjoy-spring-data-jpa-in-intellij-11/
it looks like it only works with jpa repositories xml files, but in case of spring data + spring boot there are no xml files, just a guess.
OOT: the picture upload from chrome did not work at the point of time writing this posting, just see an empty pop up if try to insert an image:
works fine in Firefox.
Spring Boot support is currently under development (https://youtrack.jetbrains.com/issue/IDEA-119230), see also specific JPA ticket https://youtrack.jetbrains.com/issue/IDEA-124726
please note spring data and jpa repositories do not require spring boot, you have the same issue without spring boot using java configs.
see https://github.com/spring-projects/spring-data-jpa for java config example
added some comments to the ticket as well,