File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 54544 . 足够成熟以应对企业级应用(Ebean和Hibernate同时期作品,资格老,而且持续更新以满足更高需求)
5555
5656#### 框架优缺点比较
57+ > 参考:[ java-persistence-frameworks-comparison] ( https://github.com/bwajtr/java-persistence-frameworks-comparison )
58+
5759** Hibernate/JPA**
5860* [ Compare to JPA] ( http://ebean-orm.github.io/architecture/compare-jpa )
5961* 反正比Hibernate/JPA好
6062
63+ ** JDBC Template**
64+ * 优点
65+ * 感觉自己非常接近JDBC本身
66+ * 实现了所有的场景而没有更大的问题-没有隐藏的惊喜
67+ * 非常容易的批量操作
68+ * 设置简单
69+ * 缺点
70+ * 在Java代码中内联SQL使得实现仓储接口的可读性不强。如果Java支持多行字符串,那就更好了
71+ * 调试日志可以更好
72+
73+ ** jOOQ**
74+ * 优点
75+ * 非常流畅,很容易编写新的查询,代码非常易读
76+ * 一旦设置好,就很容易使用,非常适合简单的查询
77+ * 很棒的日志记录器调试输出
78+ * 缺点
79+ * 某些数据库的付费许可证——很难说服经理们相信它是值得的:)
80+ * 对于大的查询来说没有那么多的实用性——最好使用原生SQL(参见场景9)
81+ * 批量操作的怪异语法(如果您不使用UpdatableRecord)。但这没什么大不了的……
82+
6183** MyBatis**
6284* 优点
6385 * 在XML映射文件里写SQL语句很爽
You can’t perform that action at this time.
0 commit comments