<@U0TMJCW90> Hi :slightly_smiling_face: I am using...
# spring
p
@cleiter Hi 🙂 I am using the kotlin-jpa compiler plugin already, which ensures that Entity classes are opened and have a noarg constructor (as far as I have understood). Using data classes was my original approach, but the fact that data classes use all fields in their hashcode and equals method make them unusable for me as I need to have equals and hashcode use only the fields that define their business identity. The only thing that I am not sure about, is if the usage of val is fine. This is mainly because of the section of the hibernate documentation that I have sent before, as it states that it is not recommended to have final fields.