I'm not sure I understand what self-mapping changed here... we could always declare the entity annotations directly on the data class in the business logic...?
t
Toshihiro Nakamura
06/18/2023, 11:52 AM
Nothing has changed in the specification of self-mapping itself. It has no effect on existing code.
Komapper’s Gradle plugin has only been able to generate code for separation mapping, but the new version can generate code for self-mapping.
d
dave08
06/18/2023, 12:32 PM
I don't understand what you mean by "generating code", the Meta classes were always generated...?
t
Toshihiro Nakamura
06/18/2023, 1:33 PM
Komapper’s Gradle plugin is a tool that generates entity class source code from Database metadata. It is different from KSP, which generates metaclass source code from entity classes.
Please see also https://www.komapper.org/docs/reference/gradle-plugin/
d
dave08
06/18/2023, 1:47 PM
Oooh, that's nice! There's no link to that page from the left side bar, so I never really knew about it!