Thanks,
I got the basics working.
Based on the .<Employee>newDiscriminator("type") and the .when definitions the correct subclassed is used to map the record to.
The thing I don't get to work yet is that the InternalEmployee class has a salary property, but the database column is named "internal_salary".
All columns name in the employee that are for specific type are prefixed with type. Just like ExternalEmployee has an hourRate property and the employee table contains an external_hour_rate column.
Is this something that can be mapped?
In the link with the test case I see .addMapping("name", 3, FieldMapperColumnDefinition.<JdbcColumnKey>identity()) but I don't actually understand how I can use that..