Hello, I have tried to make JPA Entity classes for...
# getting-started
k
Hello, I have tried to make JPA Entity classes for a Spring Boot - Data Rest project. I worked with data classes, but the Lazy loading not working with them (because they are final?). There is an another way to get toString and hashCode like lombok in java?
n
why would you use data classes? entities are in general equal when their PK are equal it's a bad idea to use data classes in that case data classes are for value objects
☝️ 1
k
Thanks! There are tutorials to suggest it, but I' have not really think of it yet, so I'll 🙂
h
is this tutorial wrong then? https://www.baeldung.com/kotlin-jpa