Is this article outdated? <https://kotlinexpertise...
# spring
s
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
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
Thanks 🙂