t.setModelClass(nativeQuery.model());
}
} catch (Exception e) {
//do nothing
}
rowMapper = new CommonBeanRowMapper(nativeQuery.model(), t, nativeQuery.alias());
}
if(rowMapper == null && (nativeQuery.alias() == null || nativeQuery.clazzes() == null
|| nativeQuery.alias().length == 0
|| nativeQuery.clazzes().length == 0))
throw new IllegalArgumentException("No return type definition found.");