Create Employee.xml
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE sqlMap PUBLIC “-//ibatis.apache.org//DTD
SQL Map 2.0//EN”
“http://ibatis.apache.org/dtd/sql-map-2.dtd”>
<sqlMap>
<select id=“getEmployee” parameterClass=“int”
resultClass=“com.Contact”>
SELECT employeeID as employeeID,
firstName as firstName,
lastName as lastName,
email as email
from Employee
where employeeID=#value#
</select>
<select id=“getEmployees” resultClass=“com.Employee”>
SELECT employeeID as employeeID,
firstName as firstName,
lastName as lastName,
email as email
from Employee
</select>
</sqlMap>
Also Read : IBatis vs Hibernate ? Which one to choose?
IBatis Tutorial – Sample Application Step 5
Introduction to IBatis Tutorial -Part 1



3 comments
Ibatis Tutorial - Sample Application Step 3 - Golmuri says:
August 17, 2008 at 3:43 pm (UTC 5.5)
[...] 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:
0
0
solar energy future says:
December 16, 2009 at 6:58 pm (UTC 5.5)
I would like to thank you for the efforts you have made in publishing this article. I am going for the same best work from you in the future as well. In fact your imaginative writing abilities has inspired me to start my own blog now. Really the blogging is distributing its wings rapidly. Your write up is a fine representative of it.
Like or Dislike:
0
0
Kevin Gassen says:
December 19, 2009 at 9:00 pm (UTC 5.5)
Hi! The articles here are great. Thanks for having this site. I have been learning Drupal lately on my own. Have you ever used Drupal? Any tips for me? I would appreciate any advice you have. Visit my site if you’d like to read more. Thanks again – great site!
Like or Dislike:
0
0