JPA autocompletion is not working in Intelliji spring-boot kotlin project

Viewed 2151

Created a simple JPA spring boot application like the attached screenshot, I found the JPA auto completion is not working anymore as java JPA.

Any suggestions to make this auto completion work? It works for java code.

java Code java Code

Kotlin code

kotlin code

1 Answers

You need to write your methods as override fun ... for IDEA to suggest JPA methods.

Related