<bdo id='HWVjJ'></bdo><ul id='HWVjJ'></ul>
<legend id='HWVjJ'><style id='HWVjJ'><dir id='HWVjJ'><q id='HWVjJ'></q></dir></style></legend>

      <small id='HWVjJ'></small><noframes id='HWVjJ'>

        <i id='HWVjJ'><tr id='HWVjJ'><dt id='HWVjJ'><q id='HWVjJ'><span id='HWVjJ'><b id='HWVjJ'><form id='HWVjJ'><ins id='HWVjJ'></ins><ul id='HWVjJ'></ul><sub id='HWVjJ'></sub></form><legend id='HWVjJ'></legend><bdo id='HWVjJ'><pre id='HWVjJ'><center id='HWVjJ'></center></pre></bdo></b><th id='HWVjJ'></th></span></q></dt></tr></i><div id='HWVjJ'><tfoot id='HWVjJ'></tfoot><dl id='HWVjJ'><fieldset id='HWVjJ'></fieldset></dl></div>
        <tfoot id='HWVjJ'></tfoot>

        休眠与 iBATIS

        Hibernate Vs iBATIS(休眠与 iBATIS)

              <tbody id='mXaSX'></tbody>
          • <legend id='mXaSX'><style id='mXaSX'><dir id='mXaSX'><q id='mXaSX'></q></dir></style></legend>
            • <bdo id='mXaSX'></bdo><ul id='mXaSX'></ul>
              <tfoot id='mXaSX'></tfoot>

              <i id='mXaSX'><tr id='mXaSX'><dt id='mXaSX'><q id='mXaSX'><span id='mXaSX'><b id='mXaSX'><form id='mXaSX'><ins id='mXaSX'></ins><ul id='mXaSX'></ul><sub id='mXaSX'></sub></form><legend id='mXaSX'></legend><bdo id='mXaSX'><pre id='mXaSX'><center id='mXaSX'></center></pre></bdo></b><th id='mXaSX'></th></span></q></dt></tr></i><div id='mXaSX'><tfoot id='mXaSX'></tfoot><dl id='mXaSX'><fieldset id='mXaSX'></fieldset></dl></div>
                • <small id='mXaSX'></small><noframes id='mXaSX'>

                • 本文介绍了休眠与 iBATIS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  对于我们的新产品重新设计,我们正在从 Java 中选择最佳框架.由于考虑为模型采用与数据库无关的方法,我们正在研究 Struts + Spring 与 iBATIS 或 Hibernate 之间的选项.请提供最佳建议,因为两者都提供持久性.

                  For our new product re-engineering, we are in the process of selecting the best framework from Java. As the consideration is to go for database agnostic approach for model, we are working on options between Struts + Spring with iBATIS or Hibernate. Please advice which is best as both offer persistence.

                  推荐答案

                  iBATIS 和 Hibernate 是完全不同的野兽.

                  iBATIS and Hibernate are quite different beasts.

                  我倾向于这样看待它:如果您的视图更以对象为中心,Hibernate 会更好地工作.但是,如果您更倾向于以数据库为中心,那么 iBATIS 是一个更强大的选择.

                  The way I tend to look at it is this: Hibernate works better if your view is more object-centric. If however you view is more database-centric then iBATIS is a much stronger choice.

                  如果您可以完全控制您的架构并且您没有极高的吞吐量要求,那么 Hibernate 可以很好地工作.对象模型提供了相当方便的代码,但代价是巨大复杂性.

                  If you're in complete control of your schema and you don't have an extremely high throughput requirement then Hibernate can work quite well. The object model makes for fairly convenient code but at a huge complexity cost.

                  如果您正在处理遗留"问题;您需要编写相当复杂的 SQL 查询的数据库架构,那么 iBATIS 可能会更好地工作.

                  If you're dealing with a "legacy" database schema where you need to write fairly complicated SQL queries then chances are iBATIS will work better.

                  HQL(Hibernate Query Language)是另一种您必须学习的语言,即便如此,您也可能会发现仍然需要编写 SQL 的情况.更重要的是,您可能会花半天时间找出 XML、属性、注释等的正确组合,以让 Hibernate 生成高性能的 SQL 查询.

                  HQL (Hibernate Query Language) is another language you'll have to learn and even then you'll probably find cases where you still need to write SQL. What's more, chances are you will at some spend half a day figuring out the right combination of XML, properties, annotations, etc to get Hibernate to generate a performant SQL query.

                  没有普遍的A优于B";回答这个问题.

                  There is no universal "A is better than B" answer for this question.

                  这篇关于休眠与 iBATIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Java Bytecode Manipulation Library Suggestions(Java 字节码操作库建议)
                  Java CLI UI-design: frameworks or libraries?(Java CLI UI 设计:框架还是库?)
                  About the use of Beans.xml configuration file in Spring Framework application(关于Spring Framework应用中Beans.xml配置文件的使用)
                  What is the difference between Spring, Struts, Hibernate, JavaServer Faces, Tapestry?(Spring、Struts、Hibernate、JavaServer Faces、Tapestry 有什么区别?)
                  Are there any android application framework like spring?(有没有像spring这样的android应用程序框架?)
                  Java Swing based game framework. Any advice?(基于 Java Swing 的游戏框架.有什么建议吗?)

                    <small id='yI7Ju'></small><noframes id='yI7Ju'>

                    <legend id='yI7Ju'><style id='yI7Ju'><dir id='yI7Ju'><q id='yI7Ju'></q></dir></style></legend>
                      <tbody id='yI7Ju'></tbody>

                      <bdo id='yI7Ju'></bdo><ul id='yI7Ju'></ul>
                        <tfoot id='yI7Ju'></tfoot>
                        <i id='yI7Ju'><tr id='yI7Ju'><dt id='yI7Ju'><q id='yI7Ju'><span id='yI7Ju'><b id='yI7Ju'><form id='yI7Ju'><ins id='yI7Ju'></ins><ul id='yI7Ju'></ul><sub id='yI7Ju'></sub></form><legend id='yI7Ju'></legend><bdo id='yI7Ju'><pre id='yI7Ju'><center id='yI7Ju'></center></pre></bdo></b><th id='yI7Ju'></th></span></q></dt></tr></i><div id='yI7Ju'><tfoot id='yI7Ju'></tfoot><dl id='yI7Ju'><fieldset id='yI7Ju'></fieldset></dl></div>