add(new ResultMapping.Builder(config, "name", "name", registry.getTypeHandler(String.class)).build());
add(new ResultMapping.Builder(config, "descn", "descn", registry.getTypeHandler(String.class)).build());
}
}).build();
config.addResultMap(discriminatorResultMap);
MappedStatement ms = new MappedStatement.Builder(config, "selectProducts", new StaticSqlSource(config,"SELECT * FROM product"), SqlCommandType.SELECT)
.resultMaps(new ArrayList<ResultMap>() {
{
add(new ResultMap.Builder(config, "defaultResultMap", HashMap.class, new ArrayList<ResultMapping>() {
{
add(new ResultMapping.Builder(config, "productid", "productid", registry.getTypeHandler(String.class)).build());