Share to: share facebook share twitter share wa share telegram print page

Apache iBATIS

Apache iBATIS
Developer(s)Apache Software Foundation
Written inJava, .NET, Ruby
Operating systemCross-platform
TypePersistence framework
LicenseApache License 2.0
Websiteibatis.apache.org

iBATIS is a persistence framework which automates the mapping between SQL databases and objects in Java, .NET, and Ruby on Rails. In Java, the objects are POJOs (Plain Old Java Objects). The mappings are decoupled from the application logic by packaging the SQL statements in XML configuration files. The result is a significant reduction in the amount of code that a developer needs to access a relational database using lower level APIs like JDBC and ODBC.

Other persistence frameworks such as Hibernate allow the creation of an object model (in Java, say) by the user, and create and maintain the relational database automatically. iBATIS takes the reverse approach: the developer starts with a SQL database and iBATIS automates the creation of the Java objects. Both approaches have advantages, and iBATIS is a good choice when the developer does not have full control over the SQL database schema. For example, an application may need to access an existing SQL database used by other software, or access a new database whose schema is not fully under the application developer's control, such as when a specialized database design team has created the schema and carefully optimized it for high performance.

On May 21, 2010 the development team forked the code creating a new project called MyBatis and making new releases there. As a consequence the Apache iBATIS project became inactive and was moved to the Apache Attic in June 2010.

Usage

For example, assume there is a database table PRODUCT (PROD_ID INTEGER, PROD_DESC VARCHAR(64)) and a Java class com.example.Product (id: int, description: String). To read the product record having the key PROD_ID into a new Product POJO, the following mapping is added into an iBATIS XML mapping file:

    <select id="getProduct" parameterClass="java.lang.Long" resultClass="com.example.Product">
 	select PROD_ID as id,
               PROD_DESC as description
          from PRODUCT
         where PROD_ID = #value#
    </select>

A new Java Product object can then be retrieved from the database for product number 123 as follows:

    Product resultProduct = (Product) sqlMapClient.queryForObject("getProduct", 123);

In the mapping file example, #value# refers to the long integer value passed into the query. If the parameter is a Java object, then values from properties on that object can be inserted into the query using a similar # notation. For example, if the parameter class is a com.example.Product which has a property called id, then #value# can be replaced with #id#. The sqlMapClient object is an instance of class com.ibatis.sqlmap.client.SqlMapClient.

Availability

The founder of iBATIS has publicly stated his dismay with Java 5, but has continued to release new versions of iBATIS for Java. Versions 2.3.1 and 2.3.2 came out in April 2008, and 2.3.3 in July.

The framework is currently available in Java, .NET, and Ruby (RBatis) versions. The jBati project is a JavaScript ORM inspired by iBATIS.

The Apache iBator tool is closely related: it connects to your database and uses its metadata to generate iBATIS mapping files and Java classes.

History

In 2001 a project called iBATIS was started by Clinton Begin. Originally the focus was on the development of cryptographic software solutions. The first product to be released by iBATIS was Secrets,[1] a personal data encryption and signing tool much like PGP. Secrets was written entirely in Java and was released under an open source license.

That year Microsoft published a paper[2] to demonstrate that its recent .NET 1.0 framework was more productive than Java. For that purpose Microsoft built its own version of Sun's Web "Pet Store", a Web project that Sun had used to show Java best practices (Java BluePrints). Microsoft claimed that .NET was 10 times faster and 4 times more productive than Java.

In 2002 Clinton developed an application called JPetStore[3] to demonstrate that Java could be more productive than .NET and could also do so while achieving a better architecture than was used in the Microsoft implementation.

JPetStore 1.0 had a big impact[4] and the database layer that Clinton used attracted the attention of the community. Soon, iBATIS Database Layer 1.0 project started, composed of two components: iBATIS DAO and iBATIS SQL Maps.

iBATIS 2.0 was released in June 2004.[5] It was a complete redesign while keeping the same features. Clinton donated the iBATIS name and code to Apache Software Foundation and the project stayed in the ASF for six years.

Eventually iBATIS DAO was deprecated, considering that better DAO frameworks were available, such as Spring Framework.

On May 19, 2010 iBATIS 3.0 was published and simultaneously the development team decided to continue the development of the framework at Google Code.[6] under a new project called MyBatis.

On June 16, 2010 Apache announced that iBATIS was retired and moved to the Apache Attic.

See also

References

  1. ^ iBATIS Secrets
  2. ^ Cat Fight in a Pet Store: J2EE vs. .NET
  3. ^ "JPetStore 1.0" (PDF). Archived from the original (PDF) on 2013-10-21. Retrieved 2013-09-08.
  4. ^ JPetStore 1.0 announcement on TheServerside.com
  5. ^ iBATIS 2.0 announcement
  6. ^ iBATIS Project Team Moving to Google Code

Bibliography

External links

Read other articles:

とくに1976年のものについては「英語版:Copyright Act of 1976」をご覧ください。 知的財産権 > 著作権 > 著作権法 (曖昧さ回避) > 著作権法 (アメリカ合衆国) アメリカ合衆国 > アメリカ合衆国議会 > アメリカ法 > 著作権法 (アメリカ合衆国) この記事は特に記述がない限り、アメリカ合衆国の法令について解説しています。また最新の法令改正を…

Овај чланак можда захтева чишћење и/или прерађивање како би се задовољили стандарди квалитета Википедије. Проблем: Недостају категорије или унутрашње везе, присутне су правописне и граматичке грешке, текст није разломљен на одељке и слично. Ако сте у могућности, побољшајт…

Castillo de Sønderborg LocalizaciónPaís  DinamarcaLocalidad SønderborgCoordenadas 54°54′25″N 9°47′01″E / 54.906944444444, 9.7836111111111Mapa de localización Castillo de Sønderborg Ubicación en Dinamarca Meridional [editar datos en Wikidata] Castillo de Sønderborg, 2005. El castillo de Sønderborg (en danés: Sønderborg Slot) está localizado en la ciudad de Sønderborg, Dinamarca, en la isla de Als en Jutlandia del Sur. Alberga un museo centrado…

Patrician III: Imperio de los MaresInformación generalDesarrollador AscaronDistribuidor FX InteractiveDatos del juegoGénero EstrategiaIdiomas inglés Modos de juego Un jugadorMultijugadorClasificaciones Mayores de 3 años.Datos del softwarePlataformas PCDatos del hardwareFormato disco compacto, distribución digital y descarga digital Dispositivos de entrada Mouse y tecladoDesarrolloLanzamiento 24/10/03Patrician Patrician II: Fortuna, poder y victoriaPatrician III: Imperio de los MaresPatricia…

Dewan Perwakilan Rakyat Daerah Kabupaten Tanjung Jabung TimurDewan Perwakilan RakyatKabupaten Tanjung Jabung Timur2019-2024JenisJenisUnikameral SejarahSesi baru dimulai2 September 2019PimpinanKetuaMahrup (PAN) sejak 7 Oktober 2019 Wakil Ketua ISaidina Hamzah, S.E. (Golkar) sejak 7 Oktober 2019 Wakil Ketua IIGatot Sumarto, S.H. (PDI-P) sejak 7 Oktober 2019 KomposisiAnggota30Partai & kursi  PDI-P (3)   NasDem (2)   Hanura (1)   PAN (17)  …

جاك أركاديلت (بالهولندية: Jakob Arcadelt)‏    معلومات شخصية الميلاد 1504لييج الوفاة أكتوبر 4, 1568باريس مواطنة جمهورية البندقية  الحياة العملية المهنة ملحن  اللغات الإيطالية  تعديل مصدري - تعديل   هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة و…

FM Box Localización SantiagoÁrea de radiodifusión Todo el mundo a través de InternetEslogan Toda la onda de tus éxitos!Primera emisión 18 de noviembre de 2002Formato Top 40Propietario Mundo Box Comunicaciones SpASitio web www.fmbox.cl[editar datos en Wikidata] FM Box fue una radio en línea de Chile es una radio digital y diario electrónico dirigido a jóvenes y adolescentes, de 12 a 24 años, de los estratos ABC1 y C2, con sede en Santiago de Chile. A comienzos de 2018 fue la

Dieser Artikel behandelt die ehemalige SED-Tageszeitung im Bezirk Suhl. Zur Anti-NS-Kundgebung 1933 in Berlin siehe Das Freie Wort (Kundgebung). Freies Wort Beschreibung Tageszeitung in Südthüringen Verlag Suhler Verlagsgesellschaft mbH & Co.KG Erstausgabe 1952 Erscheinungsweise werktags Verkaufte Auflage 45.220[1] Exemplare (IVW 3/2023, Mo–Sa) Chefredakteur Marcel Auermann Herausgeber Suhler Verlagsgesellschaft mbH & Co.KG Geschäftsführer Andreas Heinkel Weblink www.insüd…

لطفية إبراهيم معلومات شخصية مواطنة ليبيا  الحياة العملية المهنة كاتِبة  اللغات العربية  تعديل مصدري - تعديل   لطفية إبراهيم ممثلة ليبية، ظهرت على الساحة الفنية الليبية منذ سبعينيات القرن العشرين، ونشاطها المسرحي الذي استمر بين عامي 1970 و 1984 حافل بالأعمال خاصةً مع ف…

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (فبراير 2022) تحتاج هذه المقالة إلى الاستشهاد بمصادر إضافية لتحسين وثوقيتها. فضلاً ساهم في تطوير هذه المقالة بإضافة استشهادات من مصادر موثوقة. من الممكن التشكيك بالمعلوما…

العلاقات البلغارية البوليفية بلغاريا بوليفيا   بلغاريا   بوليفيا تعديل مصدري - تعديل   العلاقات البلغارية البوليفية هي العلاقات الثنائية التي تجمع بين بلغاريا وبوليفيا.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه المق…

Belgian-Canadian-French traditionally animated children's television series Charley and MimmoGenreChildren's television seriesPreschoolCountry of originBelgiumCanadaFranceOriginal languagesEnglishFrenchNo. of episodes65ProductionRunning time4-5 minutes per episode (approx.)Original releaseNetworkYTVTreehouse TVRelease1999 (1999) –2002 (2002) Charley and Mimmo (French: T'Choupi et Doudou) is a traditionally animated children's television series that aired on YTV between 1999 and …

هذه مقالة غير مراجعة. ينبغي أن يزال هذا القالب بعد أن يراجعها محرر مغاير للذي أنشأها؛ إذا لزم الأمر فيجب أن توسم المقالة بقوالب الصيانة المناسبة. يمكن أيضاً تقديم طلب لمراجعة المقالة في الصفحة المخصصة لذلك. (ديسمبر 2021) الجامعة الحكومية في غراندفالي Grand Valley State University شعار الجام…

Anas Sutan JamarisLahir(1933-08-08)8 Agustus 1933 Balingka, Sumatera Barat, Hindia BelandaMeninggal11 Maret 2022(2022-03-11) (umur 88) Padang, Sumatera BaratKebangsaan IndonesiaPekerjaanPengusahaSuami/istriDafni AnasAnakYelvi AnasEva AnasWellian AnasAlfino AnasIde AnasDony Anas Anas Sutan Jamaris (8 Agustus 1933 – 11 Maret 2022) adalah seorang pengusaha bidang transportasi yang berasal dari Sumatera Barat, Indonesia. Ia merupakan pendiri perusahaan otobus di Sumatera Barat, …

Sin-Itiro Tomonaga (朝永 振一郎)Lahir(1906-03-31)31 Maret 1906Tokyo, JapanMeninggal8 Juli 1979(1979-07-08) (umur 73)Tokyo, JapanAlmamaterKyoto Imperial UniversityDikenal atasQuantum electrodynamicsPenghargaanPenghargaan Nobel dalam Fisika (1965)Asahi Prize (1946)Karier ilmiahBidangTheoretical physicsInstitusiInstitute for Advanced StudyTokyo University of Education Sin-Itiro Tomonaga atau Shinichiro Tomonaga (朝永 振一郎 Tomonaga Shin'ichirō) adalah fisikawan teoretis Jepang yang…

第二十四屆冬季奧林匹克運動會跳台滑雪男子个人普通台比賽比賽場館张家口市国家跳台滑雪中心日期2022年2月5日至6日参赛选手53位選手,來自20個國家和地區冠军得分275.0奖牌获得者01 ! 小林陵侑  日本02 ! 曼努埃爾·費特納  奥地利03 ! 達維德·庫巴茨基  波兰← 20182026 → 2022年冬季奧林匹克運動會跳台滑雪比賽赛事个人普通台男子女子个人高台…

French historian (1886–1944) Marc BlochBorn(1886-07-06)6 July 1886Lyon, French Third RepublicDied16 June 1944(1944-06-16) (aged 57)Saint-Didier-de-Formans, Vichy FranceCause of deathExecution by firing squadResting placeLe Bourg-d'HemEducationLycée Louis-le-GrandAlma materÉcole Normale SupérieureOccupationHistorianSpouseSimonne VidalChildrenAlice and ÉtienneMilitary careerAllegiance FranceService/branchFrench ArmyYears of service1914–1918, 1939RankCaptain Awa…

Sporting event delegationIndonesia at the2014 Asian Para GamesIOC codeINANPCNational Paralympic Committee of Indonesiain Incheon18–24 October 2014Competitors67 in 9 sportsMedalsRanked 9th Gold 9 Silver 11 Bronze 18 Total 38 Asian Para Games appearances (overview)2010201420182022Youth appearances 2009 2013 2017 2021 Indonesia participated in the 2014 Asian Para Games the second edition of Asian Para Games in Incheon, South Korea from 18 to 24 October 2014. Indonesia will compete in 9 sports suc…

Von links: Helene Weyl;, Hermann Weyl, Joachim Weyl Fritz Joachim Weyl, er benutzte den Vornamen Joachim, (* 19. Februar 1915 in Zürich; † 20. Juli 1977 in New York City) war ein US-amerikanischer Informatiker und Mathematiker. Leben Fritz Joachim Weyl war der Sohn der Schriftstellerin Helene Weyl und des berühmten Mathematikers Hermann Weyl, mit dem er 1943 das Buch Meromorphic functions and analytic curves veröffentlichte (entstanden aus Hermann Weyl´s Vorlesungen am Institute for Advanc…

Usenet/newsgroup service provider This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) The topic of this article may not meet Wikipedia's notability guidelines for companies and organizations. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notabil…

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.139.105.14