Steps :
1) Creata a databas and a table
2) Create a package com.Employee
3) SQL mapper – 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 varchar(255) not null);
Insert some records into a table:
insert into employee(firstName,lastName,email) values
("sandeep","gupta","sonus@gmail.com");
insert into employee(firstName,lastName,email) values
("ashim","devnath","ashim@gmail.com");
insert into employee(firstName,lastName,email) values
("abhishek","kumar","abhishekmumar@gmail.com");
So now your table is ready . Lets go to Step 2
Also Read : IBatis vs Hibernate ? Which one to choose?
IBatis Tutorial – Sample Application Step 2



2 comments
Ibatis Tutorial - Sample Application Step 5 - Golmuri says:
August 17, 2008 at 3:52 pm (UTC 5.5)
[...] Read : IBatis vs Hibernate ? Which one to choose? IBatis Tutorial – Sample Application Step 1 Share and [...]
Like or Dislike:
0
0
Introduction to IBatis Tutorial -Part 1 - Golmuri says:
August 17, 2008 at 5:03 pm (UTC 5.5)
[...] Introduction to IBatis Tutorial -Part 2 IBatis Tutorial – Sample Application Step 1 [...]
Like or Dislike:
0
0