 
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Golmuri &#187; iBatis</title>
	<atom:link href="http://golmuri.com/category/learning-center/ibatis/feed" rel="self" type="application/rss+xml" />
	<link>http://golmuri.com</link>
	<description>Knowledge Unlimited</description>
	<lastBuildDate>Wed, 02 Feb 2011 10:09:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>iBatis Tutorial Part 2 &#8211; SQLMapConfig.xml Basics</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-2-sqlmapconfigxml-basics</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-2-sqlmapconfigxml-basics#comments</comments>
		<pubDate>Wed, 13 Aug 2008 13:29:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[Learning Center]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=22</guid>
		<description><![CDATA[This is where you need to provide all configurations for iBatis. Create an XML file with name SqlMapConfig.xml &#60;?xml version="1.0" encoding="UTF-8"?&#62; &#60;!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" " http://ibatis.apache.org/dtd/sql-map-config-2.dtd"&#62; &#60;sqlMapConfig&#62; &#60;transactionManager type="JDBC"&#62; &#60;dataSource type="SIMPLE"&#62; &#60;property name="JDBC.Driver" value="com.mysql.jdbc.Driver"/&#62; &#60;property name="JDBC.ConnectionURL" value="jdbc:mysql://localhost:3306/testdb"/&#62; &#60;property name="JDBC.Username" value="root"/&#62; &#60;property name="JDBC.Password" value=""/&#62; &#60;/dataSource&#62; &#60;/transactionManager&#62; &#60;sqlMap resource="com/Employee.xml"/&#62; &#60;/sqlMapConfig&#62; Lets understand [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis2.jpg"><img class="alignleft size-medium wp-image-148" title="ibatis2" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis2.jpg" alt="" width="200" height="63" /></a></p>
<p>This is where you need to provide all configurations for iBatis. Create an XML file with name SqlMapConfig.xml <span id="more-22"></span></p>
<hr /><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code></p>
<p><code>&lt;!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "<a href="http://ibatis.apache.org/dtd/sql-map-config-2.dtd"><br />
http://ibatis.apache.org/dtd/sql-map-config-2.dtd</a>"&gt; </code></p>
<p><code>&lt;sqlMapConfig&gt;</code></p>
<p><code> &lt;transactionManager type="JDBC"&gt;</code></p>
<p><code> &lt;dataSource type="SIMPLE"&gt; </code></p>
<p><code> &lt;property name="JDBC.Driver" value="com.mysql.jdbc.Driver"/&gt; </code></p>
<p><code> &lt;property name="JDBC.ConnectionURL" value="jdbc:mysql://localhost:3306/testdb"/&gt; </code></p>
<p><code> &lt;property name="JDBC.Username" value="root"/&gt; &lt;property name="JDBC.Password" </code></p>
<p><code> value=""/&gt; </code></p>
<p><code>&lt;/dataSource&gt; </code></p>
<p><code>&lt;/transactionManager&gt;</code></p>
<p><code> &lt;sqlMap resource="com/Employee.xml"/&gt; &lt;/sqlMapConfig&gt;</code></p>
<hr />Lets understand the above code : <strong></strong></p>
<p><strong>&lt;transactionManager type=&#8221;JDBC&#8221;&gt;</strong> <strong></strong></p>
<p><strong>type can be JDBC, JTA,External</strong></p>
<p>JDBC Alias for com.ibatis.sqlmap.engine.transaction.jdbc.JdbcTrasactionConfig</p>
<p>JTA alias for com.ibatis.sqlmap.engine.transaction.jta.JtaTransactionConfig</p>
<p>External alias for com.ibatis.sqlmap.engine.transaction.external.ExternalTransactionConfig</p>
<hr /><strong>&lt;dataSource type=&#8221;SIMPLE&#8221;&gt;</strong> <strong></strong></p>
<p><strong>datasouce can be SIMPLE, DBCP, JNDI</strong></p>
<p><strong></strong> SIMPLE is an alias for com.ibatis.sqlmap.engine.datasource.</p>
<p>SimpleDataSourceFactory DBCP is an alias for com.ibatis.sqlmap.engine.datasource.</p>
<p>DbcpDataSourceFactory JNDI is an alias for com.ibatis.sqlmap.engine.datasource.JndiDataSourceFactory.</p>
<hr />While using JNDI :</p>
<p>Use the following code <strong></strong></p>
<p><strong>&lt;dataSource type=&#8221;JNDI&#8221;&gt;</strong></p>
<p><code> &lt;transactionManager type="JTA"&gt;</code></p>
<p><code> &lt;property name = "UserTransaction" value ="java:/emp/EmlpoyeeTransaction" /&gt; </code></p>
<p><code> &lt;datasource type ="JNDI" &gt; &lt;property name ="DataSource" value ="java:/comp</code></p>
<p><code> /Employee" /&gt; </code></p>
<p><code> &lt;datasource&gt; </code></p>
<p><code>&lt;/transactionManager&gt;</code></p>
<p><code><span style="font-family: Times New Roman;">* <span style="font-family: Courier New;">&lt;property name = "UserTransaction"</span> is optional</span></code></p>
<hr /><strong>DataSource properties :</strong></p>
<p><code>&lt;property name="JDBC.Driver" value="com.mysql.jdbc.Driver"/&gt;</code></p>
<p>provide the driverName</p>
<p><code>&lt;property name="JDBC.ConnectionURL" value="jdbc:mysql://localhost:3306/testdb"/&gt;</code></p>
<p>provide the connection URL</p>
<p><code>&lt;property name="JDBC.Username" value="root"/&gt; </code></p>
<p><code>&lt;property name="JDBC.Password" value=""/&gt;</code></p>
<p>provide the username and password</p>
<p><strong>Optional properties</strong></p>
<p><code>&lt;property name="JDBC.AutoCommit" value="true"/&gt;</code></p>
<p><code> &lt;property name="Pool.MaximumActiveConnections" value="10"/&gt;</code></p>
<p><code> &lt;property name="Pool.MaximumIdleConnections" value="5"/&gt;</code></p>
<p><code> &lt;property name="Pool.MaximumCheckoutTime" value="100000"/&gt; </code></p>
<p><code>&lt;property name="Pool.MaximumTimeToWait" value="400"/&gt; </code></p>
<p><code>&lt;property name="Pool.PingQuery" value="select 1 from Enployee"/&gt; </code></p>
<p><code>&lt;property name="Pool.PingEnabled" value="false"/&gt;</code></p>
<hr /><span style="font-family: Courier New;"><code><span style="font-family: Courier New;">&lt;sqlMap resource="com/Employee.xml"/&gt;</span></code></span></p>
<p>Used to add the xml where the sql queries have been written in another XML file . Should be present in the class path. Alternatively to load files from a URL <span style="font-family: Courier New;"><code><span style="font-family: Courier New;">&lt;sqlMap url="file://c:/Employee/Employee.xml"/&gt;</span></code></span> Related Articles:</p>
<p style="TEXT-ALIGN: justify"><a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-3-sqlmapconfigxml-optional-settings">Introduction to IBatis Tutorial -Part 3</a></p>
<p style="TEXT-ALIGN: justify"><a href="http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose">IBatis vs Hibernate ? Which one to choose?</a></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-2-sqlmapconfigxml-basics/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>IBatis vs Hibernate ? Which one to choose?</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose#comments</comments>
		<pubDate>Sat, 09 Aug 2008 13:27:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=20</guid>
		<description><![CDATA[A lot of people ask me when i give sessions on IBatis.Which is better ?IBatis or Hibernate? IBatis maps the Java Objects to the SQL Query&#8217;s results. Hibernate, maps Java Objects to DB tables (Object-Relational Mapping). Hibernate automatically generates all the SQL for you. In IBatis you can directly write queried in SQL, thus if [...]]]></description>
			<content:encoded><![CDATA[<p style="TEXT-ALIGN: justify"><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis_vs_hibernate_server.jpg"><img class="alignnone size-medium wp-image-159" title="ibatis_vs_hibernate_server" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis_vs_hibernate_server.jpg" alt="" width="124" height="93" /></a>A lot of people ask me when i give sessions on IBatis.Which is better ?IBatis or Hibernate? IBatis maps the Java Objects to the SQL Query&#8217;s results. Hibernate, maps Java Objects to DB tables (Object-Relational Mapping). Hibernate automatically generates all the SQL for you. In IBatis you can directly write queried in SQL, thus if you are a good SQL programmer, you would find learning Ibatis very easy. Thus Ibatis allows you to do anything what could be done through SQL. Thus you can virtually know what the affect of a query would be.</p>
<ul>
<li>
<div style="TEXT-ALIGN: justify">Hibernate is excellent for CRUD queries (Create, Read, Update, Delete) queries, and in applications where the object model is already ready.</div>
<div style="TEXT-ALIGN: justify"><span id="more-20"></span></div>
</li>
<li>
<div style="TEXT-ALIGN: justify">IBatis is much simpler to learn compared to Hibernate .</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">On the other hand, Since you need to write all the queries by yourself, It has a much steeper development time and maintainability is comparatively difficult in Ibatis.</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">Also if there is a change in object &#8211; model, one needs to go through all the queries and correct them, which isn&#8217;t much of a problem in hibernate.</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">Hibernate does not support stored procedures. Ibatis does.</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">IBatis is faster in terms of query processing time</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">IBatis is better for batch inserts queries.</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">IBatis is simpler.</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">IBatis supports Dynamic Query which Hibernates doesn&#8217;t.</div>
</li>
<li>
<div style="TEXT-ALIGN: justify">Hibernate is close to Object Oriented development. Ibatis is close to relational DB.</div>
</li>
</ul>
<p class="zoundry_bw_tags"><!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --><br />
<span class="ztags"><span class="ztagspace">Technorati</span> : <a class="ztag" rel="tag" href="http://technorati.com/tag/Hibernate">Hibernate</a>, <a class="ztag" rel="tag" href="http://technorati.com/tag/Ibatis">Ibatis</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>IBatis Tutorial &#8211; Sample Application Step 1</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-1</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-1#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:34:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>

		<guid isPermaLink="false">http://golmuri.com/uncategorized/ibatis-tutorial-sample-application-step-1</guid>
		<description><![CDATA[Steps : 1) Creata a databas and a table 2) Create a package com.Employee 3) SQL mapper &#8211; Employee.xml 4) SQL configuration file : SQLMapConfig.xml 5) Create Java Application Step 1: Create a table use employeedb; Query to create table : create table employee ( employeeID integer(10) primray key auto_increment, firstName varchar(255) not null, lastName [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg"><img class="alignnone size-medium wp-image-167" title="ibatis3" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg" alt="" width="200" height="63" /></a></p>
<p>Steps :</p>
<p>1) Creata a databas and a table</p>
<p>2) Create a package com.Employee</p>
<p>3) SQL mapper &#8211; Employee.xml<br />
<span id="more-28"></span></p>
<p>4) SQL configuration file : SQLMapConfig.xml</p>
<p>5) Create Java Application</p>
<p><strong>Step 1: Create a table</strong></p>
<p>use employeedb;</p>
<p>Query to create table :</p>
<hr /><code><code><code>create table employee (<br />
employeeID integer(10) primray key auto_increment,<br />
firstName varchar(255) not null,<br />
lastName varchar(255) not null);</code></code></code></p>
<p><code>Insert some records into a table:</code></p>
<p><code><code>insert into employee(firstName,lastName,email) values<br />
("sandeep","gupta","<a href="mailto:sonus@gmail.com">sonus@gmail.com</a>");<br />
insert into employee(firstName,lastName,email) values<br />
("ashim","devnath","<a href="mailto:ashim@gmail.com">ashim@gmail.com</a>");<br />
insert into employee(firstName,lastName,email) values<br />
("abhishek","kumar","<a href="mailto:abhishekmumar@gmail.com">abhishekmumar@gmail.com</a>");</code></code></p>
<hr /><code>So now your table is ready . Lets go to Step 2</code></p>
<p style="TEXT-ALIGN: justify">Also Read : <a href="http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose">IBatis vs Hibernate ? Which one to choose?</a><br />
<a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-2">IBatis Tutorial &#8211; Sample Application Step 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-1/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ibatis Tutorial &#8211; Sample Application Step 2</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-2</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-2#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:33:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=27</guid>
		<description><![CDATA[Step 2: Create a package and a java object . package com.Employee import java.io.Serializable; public class Employee implements Serializable { private int employeeID; private String firstName; private String lastName; private String email; public int getEmployeeID() { return employeeID; } public void setEmployeeID(int employeeID) { this.employeeID = employeeID; } &#8230;.. } Similarly have a getter and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg"><img class="alignnone size-medium wp-image-167" title="ibatis3" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg" alt="" width="200" height="63" /></a><strong>Step 2: Create a package and a java object .</strong></p>
<hr /><code><br />
</code></p>
<p><code>package com.Employee<br />
import java.io.Serializable;<br />
public class Employee implements Serializable {<br />
private int employeeID;</code><br />
<span id="more-27"></span></p>
<p><code>private String firstName;<br />
private String lastName;<br />
private String email;</code></p>
<p>public int getEmployeeID() {<br />
return employeeID;<br />
}<br />
public void setEmployeeID(int employeeID) {<br />
this.employeeID = employeeID;<br />
}<br />
&#8230;..</p>
<p>}</p>
<hr />Similarly have a getter and setter for other attributes as well .</p>
<p style="TEXT-ALIGN: justify">Also Read : <a href="http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose">IBatis vs Hibernate ? Which one to choose?</a><br />
<a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-3">IBatis Tutorial &#8211; Sample Application Step 3</a><br />
<a href="http://golmuri.com/learning-center/ibatis/introduction-to-ibatis-tutorial-part-1">Introduction to IBatis Tutorial -Part 1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-2/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ibatis Tutorial &#8211; Sample Application Step 3</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-3</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-3#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:32:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[Learning Center]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=26</guid>
		<description><![CDATA[Step 3: Create struts-config.xml &#60;?xml version="1.0" encoding="UTF-8"?&#62; &#60;!DOCTYPE sqlMapConfig PUBLIC &#8220;-//ibatis.apache.org//DTD SQL Map Config 2.0//EN&#8221; &#8220;http://ibatis.apache.org/dtd/sql-map-config-2.dtd&#8221;&#62; &#60;sqlMapConfig&#62; &#60;transactionManager type=&#8221;JDBC&#8221;&#62; &#60;dataSource type=&#8221;SIMPLE&#8221;&#62; &#60;property name=&#8221;JDBC.Driver&#8221; value=&#8221;com.mysql.jdbc.Driver&#8221;/&#62; &#60;property name=&#8221;JDBC.ConnectionURL&#8221; value=&#8221;jdbc:mysql://localhost:3306/employeedb&#8221;/&#62; &#60;property name=&#8221;JDBC.Username&#8221; value=&#8221;root&#8221;/&#62; &#60;property name=&#8221;JDBC.Password&#8221; value=&#8221;"/&#62; &#60;/dataSource&#62; &#60;/transactionManager&#62; &#60;sqlMap resource=&#8221;com/Employee.xml&#8221;/&#62; &#60;/sqlMapConfig&#62; Also Read : IBatis vs Hibernate ? Which one to choose? IBatis Tutorial &#8211; Sample Application Step [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg"><img class="alignleft size-medium wp-image-167" title="ibatis3" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg" alt="" width="200" height="63" /></a></p>
<div class="O">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><strong>Step 3: Create struts-config.xml</strong></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<hr /></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';"><code><span style="font-family: 'Courier New';"><code><span style="font-family: 'Courier New';">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span></code></span></code></span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;!DOCTYPE sqlMapConfig</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">PUBLIC &#8220;-//ibatis.apache.org//DTD SQL Map Config 2.0//EN&#8221;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&#8220;http://ibatis.apache.org/dtd/sql-map-config-2.dtd&#8221;&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;sqlMapConfig&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;transactionManager type=&#8221;JDBC&#8221;&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;dataSource type=&#8221;SIMPLE&#8221;&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;property name=&#8221;JDBC.Driver&#8221; value=&#8221;com.mysql.jdbc.Driver&#8221;/&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;property name=&#8221;JDBC.ConnectionURL&#8221;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">value=&#8221;jdbc:mysql://localhost:3306/employeedb&#8221;/&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;property name=&#8221;JDBC.Username&#8221; value=&#8221;root&#8221;/&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;property name=&#8221;JDBC.Password&#8221; value=&#8221;"/&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;/dataSource&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;/transactionManager&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;sqlMap resource=&#8221;com/Employee.xml&#8221;/&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New';">&lt;/sqlMapConfig&gt;</span></div>
</div>
</div>
</div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<hr /></div>
</div>
<p style="TEXT-ALIGN: justify">Also Read : <a href="http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose">IBatis vs Hibernate ? Which one to choose?</a><br />
<a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-4">IBatis Tutorial &#8211; Sample Application Step 4</a><br />
<a href="http://golmuri.com/learning-center/ibatis/introduction-to-ibatis-tutorial-part-1">Introduction to IBatis Tutorial -Part 1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-3/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IBatis Tutorial &#8211; Sample Application Step 4</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-4</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-4#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:32:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[Learning Center]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=25</guid>
		<description><![CDATA[Create Employee.xml &#60;?xml version="1.0" encoding="UTF-8" ?&#62; &#60;!DOCTYPE sqlMap PUBLIC &#8220;-//ibatis.apache.org//DTD SQL Map 2.0//EN&#8221; &#8220;http://ibatis.apache.org/dtd/sql-map-2.dtd&#8221;&#62; &#60;sqlMap&#62; &#60;select id=&#8220;getEmployee&#8221; parameterClass=&#8220;int&#8221; resultClass=&#8220;com.Contact&#8221;&#62; SELECT employeeID as employeeID, firstName as firstName, lastName as lastName, email as email from Employee where employeeID=#value# &#60;/select&#62; &#60;select id=&#8220;getEmployees&#8221; resultClass=&#8220;com.Employee&#8221;&#62; SELECT employeeID as employeeID, firstName as firstName, lastName as lastName, email as email from Employee [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg"><img class="alignnone size-medium wp-image-167" title="ibatis3" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg" alt="" width="200" height="63" /></a></p>
<div class="O" style="COLOR: #000000"><span style="font-family: 'Courier New'; color: teal;"><span style="font-family: Times New Roman; color: #000000;"><strong>Create Employee.xml</strong></span></span></div>
<div class="O">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<hr /></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;"><code><span style="font-family: 'Courier New'; color: teal;"><code><span style="font-family: 'Courier New'; color: teal;"><code><span style="font-family: 'Courier New'; color: teal;"><code><span style="font-family: 'Courier New'; color: teal;">&lt;?</span><span style="font-family: 'Courier New'; color: #3f7f7f;">xml</span> <span style="font-family: 'Courier New'; color: #7f007f;">version</span><span style="font-family: 'Courier New'; color: black;">=</span><span style="font-family: 'Courier New'; color: #2a00ff;">"1.0"</span> <span style="font-family: 'Courier New'; color: #7f007f;">encoding</span><span style="font-family: 'Courier New'; color: black;">=</span><span style="font-family: 'Courier New'; color: #2a00ff;">"UTF-8"</span> <span style="font-family: 'Courier New'; color: teal;">?&gt;</span></code></span></code></span></code></span></code></span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;">&lt;!</span><span style="font-family: 'Courier New'; color: #3f7f7f;">DOCTYPE</span> <span style="font-family: 'Courier New'; color: navy;">sqlMap</span> <span style="font-family: 'Courier New'; color: gray;">PUBLIC</span> <span style="font-family: 'Courier New'; color: navy;">&#8220;-//ibatis.apache.org//DTD</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: navy;">SQL Map 2.0//EN&#8221;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: #3f7f5f;">&#8220;http://ibatis.apache.org/dtd/sql-map-2.dtd&#8221;</span><span style="font-family: 'Courier New'; color: teal;">&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-family: 'Courier New'; color: #3f7f7f;">sqlMap</span><span style="font-family: 'Courier New'; color: teal;">&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-family: 'Courier New'; color: #3f7f7f;">select</span> <span style="font-family: 'Courier New'; color: #7f007f;">id</span><span style="font-family: 'Courier New'; color: black;">=</span><span style="font-family: 'Courier New'; color: #2a00ff;">&#8220;getEmployee&#8221;</span> <span style="font-family: 'Courier New'; color: #7f007f;">parameterClass</span><span style="font-family: 'Courier New'; color: black;">=</span><span style="font-family: 'Courier New'; color: #2a00ff;">&#8220;int&#8221;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: #7f007f;">resultClass</span><span style="font-family: 'Courier New'; color: black;">=</span><span style="font-family: 'Courier New'; color: #2a00ff;">&#8220;com.Contact&#8221;</span><span style="font-family: 'Courier New'; color: teal;">&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">SELECT employeeID as employeeID,</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">firstName as firstName,</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">lastName as lastName,</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">email as email</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">from Employee</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">where employeeID=#value#</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-family: 'Courier New'; color: #3f7f7f;">select</span><span style="font-family: 'Courier New'; color: teal;">&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-family: 'Courier New'; color: #3f7f7f;">select</span> <span style="font-family: 'Courier New'; color: #7f007f;">id</span><span style="font-family: 'Courier New'; color: black;">=</span><span style="font-family: 'Courier New'; color: #2a00ff;">&#8220;getEmployees&#8221;</span> <span style="font-family: 'Courier New'; color: #7f007f;">resultClass</span><span style="font-family: 'Courier New'; color: black;">=</span><span style="font-family: 'Courier New'; color: #2a00ff;">&#8220;com.Employee&#8221;</span><span style="font-family: 'Courier New'; color: teal;">&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">SELECT employeeID as employeeID,</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">firstName as firstName,</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">lastName as lastName,</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">email as email</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: black;">from Employee</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-family: 'Courier New'; color: #3f7f7f;">select</span><span style="font-family: 'Courier New'; color: teal;">&gt;</span></div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1"><span style="font-family: 'Courier New'; color: teal;">&lt;/sqlMap&gt;</span></div>
</div>
</div>
</div>
</div>
</div>
<div style="mso-char-wrap: 1; mso-kinsoku-overflow: 1">
<hr /></div>
</div>
<p class="zoundry_bw_tags"><!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --><br />
<span class="ztags"><span class="ztagspace">Technorati</span> : <a class="ztag" rel="tag" href="http://technorati.com/tag/ibatis">ibatis</a></span></p>
<p style="TEXT-ALIGN: justify">Also Read : <a href="http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose">IBatis vs Hibernate ? Which one to choose?</a><br />
<a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-5">IBatis Tutorial &#8211; Sample Application Step 5</a><br />
<a href="http://golmuri.com/learning-center/ibatis/introduction-to-ibatis-tutorial-part-1">Introduction to IBatis Tutorial -Part 1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-4/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ibatis Tutorial &#8211; Sample Application Step 5</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-5</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-5#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:31:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[Learning Center]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=24</guid>
		<description><![CDATA[Step 5 : Create a standalone java class to run the application . import java.io.Reader; import java.util.List; import com.ibatis.common.resources.Resources; import com.ibatis.sqlmap.client.SqlMapClient; import com.ibatis.sqlmap.client.SqlMapClientBuilder; import com.model.Employee; public class QueryEmployee { public static void main(String[] args) { try { String resource = &#8220;SqlMapConfig.xml&#8221;; Reader reader = Resources.getResourceAsReader(resource); SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader); Integer employeePrimaryKey = new Integer(1); Employee [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg"><img class="alignnone size-medium wp-image-167" title="ibatis3" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg" alt="" width="200" height="63" /></a></p>
<div><strong>Step 5 : Create a standalone java  class to run the application .</strong></p>
<hr /><code>import java.io.Reader;<br />
import java.util.List;</code></p>
<p>import com.ibatis.common.resources.Resources;<br />
import  com.ibatis.sqlmap.client.SqlMapClient;<br />
import  com.ibatis.sqlmap.client.SqlMapClientBuilder;<br />
import com.model.Employee;</p>
<p>public class QueryEmployee {</p>
<p>public static void main(String[] args) {<br />
try {<br />
String resource =  &#8220;SqlMapConfig.xml&#8221;;</p>
<p><img id="zoundry_extended_entry_marker_id" class="zoundry_extended_entry_marker_id" style="border-bottom: 2px dotted #009900; width: 100%; height: 2px;" src="file:///C:///C%7C/Program%20Files/Zoundry%20Blog%20Writer/resources/transparent16x16.gif" alt="" /></p>
<p>Reader reader = Resources.getResourceAsReader(resource);<br />
SqlMapClient  sqlMap =<br />
SqlMapClientBuilder.buildSqlMapClient(reader);<br />
Integer  employeePrimaryKey = new Integer(1);<br />
Employee employee =<br />
(Employee)sqlMap.queryForObject(&#8220;getEmployee&#8221;,<br />
employeePrimaryKey);<br />
System.out.println(employee.getFirstName()<br />
+ &#8220;\t&#8221; +  employee.getLastName());<br />
}catch(Exception e) {<br />
e.printStackTrace();<br />
}<br />
}<br />
}</p></div>
<hr />
<p class="zoundry_bw_tags"><!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --><br />
<span class="ztags"><span class="ztagspace">Technorati</span> : <a class="ztag" rel="tag" href="http://technorati.com/tag/ibatis">ibatis</a></span></p>
<p style="TEXT-ALIGN: justify">Also Read : <a href="http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose">IBatis vs Hibernate ? Which one to choose?</a><br />
<a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-1">IBatis Tutorial &#8211; Sample Application Step 1</a><br />
<a href="http://golmuri.com/learning-center/ibatis/introduction-to-ibatis-tutorial-part-1&lt;/a"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-5/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IBatis Tutorial Part 3 &#8211; SQLMapConfig.xml optional settings</title>
		<link>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-3-sqlmapconfigxml-optional-settings</link>
		<comments>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-3-sqlmapconfigxml-optional-settings#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:30:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[Learning Center]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=23</guid>
		<description><![CDATA[Here are some of the options setting which are worth mentioning. &#60;settings maxRequests ="120" maxSessions ="20" maxTransactions="10" lazyLoadingEnabled =" true" enhancementEnabled ="true" cacheModelsEnabled ="true" useStatementNamespaces ="false" defaultStatementTimeout ="5" /&#62; &#60;typaAlias alias = ""employee&#62; type ="com.Emloyee" /&#62; Settings attributes : maxRequests: Maximum number of threads that can execute an SQL statement at a time maxSessions: Number [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg"><img class="alignright size-medium wp-image-167" title="ibatis3" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg" alt="" width="200" height="63" /></a></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code></code></code></span></code></code></span></code></code></span></code> Here are some of the options setting which are worth mentioning.</p>
<hr /><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">&lt;settings </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">maxRequests ="120" </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">maxSessions ="20" </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">maxTransactions="10" </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">lazyLoadingEnabled =" true" </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">enhancementEnabled ="true" </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">cacheModelsEnabled ="true" </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">useStatementNamespaces ="false" </span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">defaultStatementTimeout ="5" /&gt;</span></code></code></span></code></code></span></code></code></span></code></p>
<p><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;"><code><code><span style="font-family: Times New Roman;">&lt;typaAlias alias = ""employee&gt; type ="com.Emloyee" /&gt;</span></code></code></span></code></code></span></code></code></span></code></p>
<hr />
<p style="TEXT-ALIGN: justify"><strong>Settings attributes :</strong> <span id="more-23"></span></p>
<p style="TEXT-ALIGN: justify"><strong>maxRequests:</strong> Maximum number of threads that can execute an SQL statement at a time</p>
<p style="TEXT-ALIGN: justify"><strong>maxSessions:</strong> Number of clients that can be active at any time. <strong></strong></p>
<p style="TEXT-ALIGN: justify"><strong>maxTransactions</strong>: Maximum number of threads that can enter SqlMapClient.startTransactions at a time</p>
<p style="TEXT-ALIGN: justify"><span style="text-decoration: underline;">Hint</span>: Max Request&gt;MaxSession &gt;= maxTransactions</p>
<p style="TEXT-ALIGN: justify"><strong>cacheModelsEnabled</strong>: This setting globally enables or disables all cache models for an SqlMapClient <strong></strong></p>
<p style="TEXT-ALIGN: justify"><strong>LazyLoadingEnabled</strong>: This setting globally enables or disables all lazy loading for an SqlMapClient <strong></strong></p>
<p style="TEXT-ALIGN: justify"><strong>enhancementEnabled:</strong> This setting enables runtime bytecode enhancements to facilitate optimized JavaBean property access as well as enhanced lazy loading</p>
<p style="TEXT-ALIGN: justify"><strong>useStatementNamespaces</strong>: With this setting enabled, you must always refer to mapped statements by their fully qualified name, which is the combination of the SqlMap name and their statement name <strong></strong></p>
<p style="TEXT-ALIGN: justify"><strong>defaultStatementTimeout</strong>: an integer value for jdbc query timeout for all statements</p>
<hr />Type alias : used to provide an alias name for an otherwise long java class</p>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-3-sqlmapconfigxml-optional-settings/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Introduction to IBatis Tutorial -Part 1</title>
		<link>http://golmuri.com/learning-center/ibatis/introduction-to-ibatis-tutorial-part-1</link>
		<comments>http://golmuri.com/learning-center/ibatis/introduction-to-ibatis-tutorial-part-1#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:28:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[iBatis]]></category>
		<category><![CDATA[Learning Center]]></category>

		<guid isPermaLink="false">http://golmuri.com/?p=21</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg"><img class="alignnone size-medium wp-image-167" title="ibatis3" src="http://golmuri.com/wp-content/uploads/2008/08/ibatis3.jpg" alt="" width="200" height="63" /></a></p>
<p style="TEXT-ALIGN: justify">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.</p>
<p style="TEXT-ALIGN: justify">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. <span id="more-21"></span></p>
<p style="TEXT-ALIGN: justify">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.</p>
<p style="TEXT-ALIGN: justify">Ibatis also supports lazy loading, joins, and caching.</p>
<p style="TEXT-ALIGN: justify">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.</p>
<p><a href="http://ibatis.apache.org/javadownloads.cgi">Click Here to download</a> 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 &#8220;lib&#8221; folder . ibatis-common-2.jar ibatis-sqlmap-2.jar ibatis-dao-2.jar</p>
<p style="TEXT-ALIGN: justify">Also Read : <a href="http://golmuri.com/learning-center/ibatis/ibatis-vs-hibernate-which-one-to-choose">IBatis vs Hibernate ? Which one to choose?</a></p>
<p style="TEXT-ALIGN: justify"><a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-part-2-sqlmapconfigxml-basics">Introduction to IBatis Tutorial -Part 2</a><br />
<a href="http://golmuri.com/learning-center/ibatis/ibatis-tutorial-sample-application-step-1">IBatis Tutorial &#8211; Sample Application Step 1</a></p>
<p class="zoundry_bw_tags"><!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --><br />
<span class="ztags"><span class="ztagspace">Technorati</span> : <a class="ztag" rel="tag" href="http://technorati.com/tag/ibatis">ibatis</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://golmuri.com/learning-center/ibatis/introduction-to-ibatis-tutorial-part-1/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

