[REQ] Improvment additionalModelTypeAnnotations
Created by: UnleashSpirit
Is your feature request related to a problem? Please describe.
Not really, there is a "workaround" I need multiple model annotations but the additionalModelTypeAnnotations is not really clear If you want multiple you need either to write all of them oneline or one by line which result in lot of useleff blank space (ok not a big deal)
Exemples
Using
<additionalModelTypeAnnotations>
@lombok.Builder
@lombok.NoArgsConstructor
@lombok.AllArgsConstructor
</additionalModelTypeAnnotations>
Result in
@lombok.Builder
@lombok.NoArgsConstructor
@lombok.AllArgsConstructor
public class xxxDTO {
Yes there is a lots of spaces
Using
<additionalModelTypeAnnotations>@lombok.Builder @lombok.NoArgsConstructor @lombok.AllArgsConstructor</additionalModelTypeAnnotations>
Result in
@lombok.Builder @lombok.NoArgsConstructor @lombok.AllArgsConstructor
public class xxxDTO {
Better but with long annotation like, @com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS)
not really good
Describe the solution you'd like
Something like :
<additionalModelTypeAnnotations>
<additionalModelTypeAnnotation>@lombok.Builder</additionalModelTypeAnnotation>
<additionalModelTypeAnnotation>@lombok.NoArgsConstructor</additionalModelTypeAnnotation>
<additionalModelTypeAnnotation>@lombok.AllArgsConstructor</additionalModelTypeAnnotation>
</additionalModelTypeAnnotations>
Hoping result
@lombok.Builder
@lombok.NoArgsConstructor
@lombok.AllArgsConstructor
public class xxxDTO {
Describe alternatives you've considered
I try using comma but they are kept in generated sources so complitation fails
Multiple , only the last one is generated
Additional context
I used lombok exemple but it's more general generatorName : spring