|
|
|
@ -5,6 +5,7 @@ import org.panda.code.uitl.ReflectionUtil; |
|
|
|
|
|
|
|
|
|
import org.panda.jdbc.sql.BeanSqlUtil; |
|
|
|
|
import java.lang.reflect.Field; |
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
import java.sql.ResultSet; |
|
|
|
|
import java.sql.ResultSetMetaData; |
|
|
|
|
import java.sql.SQLException; |
|
|
|
@ -27,6 +28,7 @@ public class BeanHander implements ResultSetHandler { |
|
|
|
|
try { |
|
|
|
|
Object bean = BeanUtil.instantiateClass(clazz); |
|
|
|
|
List<Field> fieldList = BeanUtil.getAllField(clazz); |
|
|
|
|
List<Method> methodList =BeanUtil.getAllMethods(clazz); |
|
|
|
|
for (Field f:fieldList){ |
|
|
|
|
String fieldName = f.getName(); |
|
|
|
|
String columnName = BeanSqlUtil.caseToHump(fieldName); |
|
|
|
|