Why would I ever use a separation mapping? #508
-
Looks to me that using self-mapping requires less code and better readability. So why would I ever use separation mapping? Only reason I could see is if I cannot modify the entity class definitions. Or are there other reasons? |
Beta Was this translation helpful? Give feedback.
Answered by
nakamura-to
Mar 11, 2022
Replies: 1 comment 2 replies
-
Separation mapping is useful when we want to use same entity classes in multiple projects, e.g., front-end and back-end projects. With separation mapping, the front-end project does not need to depend on Komapper's annotation module. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
nkiesel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Separation mapping is useful when we want to use same entity classes in multiple projects, e.g., front-end and back-end projects. With separation mapping, the front-end project does not need to depend on Komapper's annotation module.