Print This Post

«

»

Aug
08

Introduction to IBatis Tutorial -Part 1

This is a tutorial on IBatis . IBatis is a persistence framework which enables mapping SQL queries to POJOs (Plain Old Java Objects). The SQL queries are decoupled from an application by putting the queries in XML files. Mapping of the retrieved objects is automatic or semi-automatic.

IBatis couples objects with stored procedures or SQL statements using a XML descriptor.iBatis provides a set of APIs which can be used to call these statements written in an XML file. Also since IBatis gives you the power to write any SQL query in the XML file, there is nothing that IBatis cannot achieve, thus making it a very good persistence framework.IBatis is simple to learn and anyone who can write SQL queries can very well work on this.

With IBatis you can write Inline queries, Dynamic SQL, Stored Procedures. Ibatis supports calling stored procedures directly; Also Ibatis makes sure that the SQL queries are very loosely coupled to the application code.

Ibatis also supports lazy loading, joins, and caching.

Ibatis is different as it does not bind fields to columns but binds parameters and results to the SQL statements. Also performance of IBatis is good, and it is portable across various platforms.

Click Here to download iBatis from Ibatis website. Once downloaded , just unzip the contents in a folder .Go to the folder where you have unzipped the folder and you can find the following jars in the “lib” folder . ibatis-common-2.jar ibatis-sqlmap-2.jar ibatis-dao-2.jar

Also Read : IBatis vs Hibernate ? Which one to choose?

Introduction to IBatis Tutorial -Part 2
IBatis Tutorial – Sample Application Step 1


Technorati :

Related Posts with Thumbnails

5 comments

  1. Ibatis Tutorial - Sample Application Step 3 - Golmuri says:

    [...] Read : IBatis vs Hibernate ? Which one to choose? IBatis Tutorial – Sample Application Step 4 Introduction to IBatis Tutorial -Part 1 Share and [...]

    Like or Dislike: Thumb up 1 Thumb down 0

  2. Rutuja says:

    That was knowledgeable!!

    Like or Dislike: Thumb up 1 Thumb down 1

  3. Rajneesh says:

    Thanks for sharing your knowledge . I am using ibatis on one of our client project.

    Like or Dislike: Thumb up 1 Thumb down 0

  4. Lucille Rockenbach says:

    I was looking for this the other day. i dont usually post in forums but i wanted to say thank you!

    Like or Dislike: Thumb up 2 Thumb down 1

  5. Rupesk says:

    Looks good

    Like or Dislike: Thumb up 0 Thumb down 0

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>