Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,9 @@ private Object createByConstructorSignature(ResultSetWrapper rsw, Class<?> resul

private Object createUsingConstructor(ResultSetWrapper rsw, Class<?> resultType, List<Class<?>> constructorArgTypes, List<Object> constructorArgs, Constructor<?> constructor) throws SQLException {
boolean foundValues = false;
if(constructor.getParameterTypes().length!=rsw.getColumnNames().size()){
throw new RuntimeException("The select column : " + rsw.getColumnNames() +" , doesn't match the constructor parameter of : "+resultType.getName());
}
for (int i = 0; i < constructor.getParameterTypes().length; i++) {
Class<?> parameterType = constructor.getParameterTypes()[i];
String columnName = rsw.getColumnNames().get(i);
Expand Down