I'm relatively new to kotlin and we want to introd...
# server
a
I'm relatively new to kotlin and we want to introduce it to our (big) Java/Spring application. I was wondering if
kotlin-jpa
is the way to go when working with hibernate? It makes it easier to define
@Entity
classes as data-classes, but is that the best way 🤔
i
#spring + don’t use data classes for entities because JPA doesn’t work well with the generated equals/hashCode functions. https://kotlinexpertise.com/hibernate-with-kotlin-spring-boot/
a
Thanks for the link 👍
s
You can see also guidelines in the official tuto https://spring.io/guides/tutorials/spring-boot-kotlin/