随笔分类 -  mybatis由浅入深

摘要:示例: 数据库某字段如 `test` int(11) DEFAULT NULL 取出转换成对象中存在test字段 int test; 结果: 数据库中所有为null的字段转换成对象中的test字段都变成了0; 阅读全文
posted @ 2017-08-26 21:25 jiguojing 阅读(3195) 评论(0) 推荐(0)
摘要:1.开发上手难度 hibernate 封装的功能和特性比较多,比mybatis掌握要难 2.系统调优方案 Hibernate: 制定合理的缓存策略 尽量使用延迟加载的特性 采用合理的session管理机制 使用批量抓取,设定合理的批处理参数 进行合理的O/R映射设计 MyBatis: session 阅读全文
posted @ 2017-08-26 21:21 jiguojing 阅读(452) 评论(0) 推荐(0)