jdbc的问题

JohnnyZz 发布于 2017/02/06 10:36
阅读 218
收藏 1

To load millions of rows from database, first way is to define POJO class, put one in one POJO instance, second way to put one row data in one Map instance, which ways you would prefer? Why?

加载中
0
叶飞飘渺
叶飞飘渺

I choose POJO class.Using POJO class as a data transfer, you can let the non design POJO intuitive to see one of the attributes, and get the value, and the use of map, then, not intuitive, including the property name, property type, etc.

0
壹贰叁
壹贰叁

惊人,程序员逛osc论坛发出感叹后13亿中国人看后都沉默了。。。

返回顶部
顶部