Spring Data Jpa Repositories Autocomplete "findBy..." methods not working with Spring Boot(13.1)

Hi!

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!

0
3 comments

+ 1

Intellij 13.1.6 (same for 14.0.1) Ultimate

OS X 10.9.5

given this project as example:

https://github.com/pkainulainen/spring-data-jpa-examples/tree/master/integration-testing

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.

Bildschirmfoto 2014-11-26 um 01.35.47.png

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:
Bildschirmfoto 2014-11-26 um 01.39.29.png
works fine in Firefox.

0

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

0

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,
cheers

0

Please sign in to leave a comment.