Skip to content

Commit dba3f13

Browse files
Generate default empty copnstructor for POJOs if setter generation is enabled
This allows to start with an empty POJO and set properties one after another.
1 parent fe4313a commit dba3f13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/esmf-aspect-model-java-generator/src/main/resources/java-pojo-constructor-lib.vm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
}
5050
#end
5151
}
52+
53+
#if ( $codeGenerationConfig.enableSetters() )
54+
public ${util.generateClassName( $element, $codeGenerationConfig )}() {
55+
super();
56+
}
57+
#end
5258
#end
5359

5460
#macro( javaPojoConstructor )

0 commit comments

Comments
 (0)