<How would i use Kotlin MultiPlatform with spring>...
# stackoverflow
u
How would i use Kotlin MultiPlatform with spring So I have a project with a module structure of -common -common-js -common-jvm -server (Kotlin/SpringBoot/Hibernate) -web(KotlinJS/React) I want to have my models shared but on the server module, I need the annotations for hibernate. What would be a good strategy? Should I take the annotations out and wrap the entity in a class that uses them? @Entity @Table(uniqueConstraints = [UniqueConstraint(columnNames = arrayOf("isbn"))]) data class Book( @NotBlank @Size(max = 249)...