Features Tips & Tricks

Kotlin JPA and Spring Data

IntelliJ IDEA 2018.3 comes with better JPA and Spring Data support for Kotlin. The IDE can automatically inject JPQL into query strings, providing completion for entity names and parameters:JPACompletion-fullNamed queries are also supported:JPANamed-fullSpring Data interfaces can now also be written in Kotlin, and IntelliJ IDEA will understand the entities you use. It provides you with smart completion for method names and quick-fixes for parameters:SpringDataRepo-fullAlso, custom queries with Expression Language variables are now supported:SpringDataCustomQuery-fullPlease try using JPA and Spring Data with Kotlin and share your experience with us.

More posts about Kotlin with Spring support in IntelliJ IDEA are coming. Please stay tuned!

The previous post can be found here.

image description