Print This Post

«

»

Aug
08

IBatis Tutorial – Sample Application Step 1

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

Related Posts with Thumbnails

2 comments

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

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

    Like or Dislike: Thumb up 0 Thumb down 0

  2. Introduction to IBatis Tutorial -Part 1 - Golmuri says:

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

    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>