'Spring persistent framework which supports data class of kotlin

the question is simple, but I can't find any of answer about this.

After searching, I realize that kotlin data class is not suitable for Spring JPA because data class is immutable and does not support inheritance.

So, I wonder are there any alternatives for JPA which support data class.

Thanks,



Solution 1:[1]

I find two kotlin-based ORM, ktorm and exposed.

It seems both are very good for start, and it supports data class. But, at some point, I thought that I need to move to ktor rather than Spring boot when I wanna use kotlin more kotlin-tic way..

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hyukjoong Kim