SELECT NEW A(id,name) FROM T_1;class A(){ public A(int id,String name){ } public A(){}}
建一个相应的bean
select 字段 as 输出字段 from table
没必要吧,你直接调对应属性不就完了?