Print This Post

«

»

Aug
08

IBatis Tutorial – Sample Application Step 4

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>


Technorati :

Also Read : IBatis vs Hibernate ? Which one to choose?
IBatis Tutorial – Sample Application Step 5
Introduction to IBatis Tutorial -Part 1

Related Posts with Thumbnails

3 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 0 Thumb down 0

  2. solar energy future says:

    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: Thumb up 0 Thumb down 0

  3. Kevin Gassen says:

    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: 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>