Open yongqxu opened 5 years ago
Yes, dtonator should be able to do that:
Probably something like:
EmployeeDto:
domain: Employee
annotations: org.whatever.DaTa
If you want the same annotations on every single DTO, it'd make sense to have a list of common annotations at the top of the yaml file that would be applied to all DTOs, but dtonator doesn't support that currently. It'd be a pretty trivial change though if you'd like to submit a PR.
We use lombok extensively, i wish those auto generated DTOs can include some lombok annotations such as @Data, @AllArgsConstructor, @NoArgsConstructor, @Builder, etc.If i have manually add them, i wish i just need to add once, next time auto generated DTOs will not overwrite my manually update DTO class.