找回密码
 立即注册
ibatisHibernate提供终结 | VTK 2022-09-29 113 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
iBATIS一词来源于“internet”和“abatis”的组合,是一个由ClintonBegin在2001年建议的开放源代码项目。最初侧重于密码软件的开发,现在是一个依据Java的耐久层结构。iBATIS提供的耐久层结构包括SQLMaps和DataAccessObjects(DAO),同时还提供一个利用这个结构开发的JPetStore实例。相对Hibernate和ApacheOJB等“一站式”ORM解决方案而言,ibatis是一种“半自动化”的ORM终结。所谓“半自动”,可能理解上有点生涩。纵观现在干流的ORM,不管Hibernate还是ApacheOJB,都对数据库结构提供了较为完整的封装,提供了从POJO到数据库表的全套映射机制。程序员往往只需定义好了POJO到数据库表的映射联系,即可通过Hibernate或许OJB提供的方法终结耐久层操作。程序员甚至不需要对SQL的熟练掌握,Hibernate/OJB会依据拟定的存储逻辑,自动生成对应的SQL并调用JDBC接口加以履行。使用ibatis提供的ORM机制,对业务逻辑终结人员而言,面临的是朴实的Java目标,这一层与通过Hibernate终结ORM而言基本共同,而关于详细的数据操作,Hibernate会自动生成SQL句子,而ibatis则要求开发者编写详细的SQL句子。相对Hibernate等“全自动”ORM机制而言,ibatis以SQL开发的办公量和数据库移植性上的退让,为系设计提供了更大的自由空间。作为“全自动”ORM终结的一种有利补充,ibatis的呈现显得别具含义。
ibatis开发指南.pdf

(The term iBATIS comes from the combination of "internet" and "abatis". It is an open source project recommended by Clinton Begin in 2001. Initially focused on the development of cryptographic software, it is now a durability layer structure based on Java. The durability layer structure provided by iBATIS includes SQLMaps and DataAccessObjects (DAO), and also provides a JPetStore instance developed using this structure. Compared with Hibernate, Apache OJB and other "one-stop" ORM solutions, ibatis is a "semi-automatic" ORM termination. The so-called "semi-automatic" may be a bit awkward in understanding. Looking at the current mainstream ORM, both Hibernate and Apache OJB provide a relatively complete encapsulation of the database structure and a full set of mapping mechanisms from POJO to database tables. Programmers often only need to define the mapping relationship between POJO and database table, and then they can terminate the durability layer operation through the methods provided by Hibernate or OJB. Programmers do not even need to be proficient in SQL. Hibernate/OJB will automatically generate the corresponding SQL and call the JDBC interface to perform according to the proposed storage logic. Using the ORM mechanism provided by ibatis, business logic terminators face simple Java goals. This layer is basically the same as terminating ORM through Hibernate. For detailed data operations, Hibernate will automatically generate SQL sentences, while ibatis requires developers to write detailed SQL sentences. Compared with Hibernate and other "fully automatic" ORM mechanisms, ibatis provides greater freedom for system design with the concession of SQL development workload and database portability. As a beneficial supplement to the "fully automatic" ORM termination, the presentation of ibatis is meaningful.
Ibatis Development Guide.pdf)

[下载]16283045294.rar




上一篇:Struts2
下一篇:Struts2+学习笔记