Given the following entity:
The mapper throws the following compile time error:
Updating the constructor to:
allows the mapper to generate the classes, however the EntityHelper generated get method expects the 5 argument constructor
Looking at the mapper-processor code, the EntityGetMethodGenerator is using EntityDefinition#getAllValues while the validateConstructor method of DefaultEntityFactory calls validateAllColumnsConstructor with only EntityDefinition#getAllColumns.
Current workaround is to define both constructors.
thank you for reporting this. With the fix I’m proposing, the right constructor to declare is the one containing computed values: