Łukasz Pięta
02/16/2023, 12:30 PMdata class
? I know that equals and hashcode need to be overridden then, but what about "The entity class must not be final*"* rule from JPA Specification? It can be easily solved by all-open compiler plugin as well. However it looks weird in the bytecode
@javax.persistence.Entity public open data class
I already found an issue https://youtrack.jetbrains.com/issue/KT-34568/All-open-plugin-does-not-support-data-classes and the answer
breakingbut I wonder what are the exact consequences of breaking thecontracts will eventually bring more harm than good.data class
data class
contractŁukasz Pięta
02/17/2023, 9:33 AMdata class
for `@Entity`", but no further analysis was made 😕
I already knew that data class
causes problems to the JPA and there is a more detailed video from jetbrains explaining that further
but still I don't know what might be the consequences of breaking the data class
contract in bytecode, even though I know there is no sense to use data class
for entity at all