Join Slack
Powered by
Is this article outdated? <https://kotlinexpertise...
# spring
s
Stian N
04/06/2020, 8:41 AM
Is this article outdated?
https://kotlinexpertise.com/hibernate-with-kotlin-spring-boot/
I found this article that was updated a couple of months ago, and it doesn't mention any if the issues from the first article.
https://www.baeldung.com/kotlin-jpa
Slack Conversation
t
thanksforallthefish
04/06/2020, 8:52 AM
are you talking in particular about `data class`es? you should not use them (baeldung got it wrong there, and I think the other articles explains it correctly too) the guide pinned it this channel also “explains” that immutable classes don’t work well with jpa:
https://spring.io/guides/tutorials/spring-boot-kotlin/#_persistence_with_jpa
vlad mihalcea explains equals/hashcode too:
https://vladmihalcea.com/how-to-implement-equals-and-hashcode-using-the-jpa-entity-identifier/
s
Stian N
04/06/2020, 10:16 AM
Thanks 🙂
6
Views
Open in Slack
Previous
Next