so im trying to have a one to many and a many to ...
# spring
n
so im trying to have a one to many and a many to one in the dto. should i create a separte dto for postmapping?
k
not sure but you should definately use kotlin! 🙂
n
i am using kotlin .-.
d
I personally prefer to have dtos separated from jpa entities if that is what you were referring to. In constructor of your data class you can do the mapping between entity and dto. Just a suggestion 🙂