dave08
10/10/2024, 12:00 PM@KomapperProjectionDef
for when the model is declared in another module that shouldn't have a dependency to Komapper...dave08
10/10/2024, 12:02 PMToshihiro Nakamura
10/10/2024, 12:03 PMdave08
10/10/2024, 12:07 PMdave08
10/10/2024, 12:09 PMToshihiro Nakamura
10/10/2024, 12:15 PMAlso, it’s not mentioned if all the regular annotations apply (like KomapperColumn and KomapperIgnore), although I suppose they do (and that some don’t...?)Yes, all annotations are applied.
Also, if there are some fields not in the ProjectionDef, are they considered ignored, or just default to what’s declared in the original class?What’s declared in the original class is used as the default.
dave08
10/10/2024, 12:20 PMToshihiro Nakamura
10/10/2024, 12:26 PMSo I don’t really need to declare anything unless I need to add an annotation to one of the fields?No, you don’t. Def is simply a class for specifying annotations on properties with the same names as those in the original class. I can’t quite picture a case where Def would be closer to what’s needed.
dave08
10/10/2024, 12:41 PMToshihiro Nakamura
10/10/2024, 1:04 PMdave08
10/10/2024, 1:07 PMProjectionType.NAME
...