<s>
iBATIS	B-Library
is	O
a	O
persistence	B-Library
framework	I-Library
which	O
automates	O
the	O
mapping	O
between	O
SQL	B-Language
databases	I-Language
and	O
objects	O
in	O
Java	B-Language
,	O
.NET	B-Application
,	O
and	O
Ruby	B-Language
on	O
Rails	O
.	O
</s>
<s>
In	O
Java	B-Language
,	O
the	O
objects	O
are	O
POJOs	O
(	O
Plain	B-Language
Old	I-Language
Java	I-Language
Objects	I-Language
)	O
.	O
</s>
<s>
The	O
mappings	O
are	O
decoupled	O
from	O
the	O
application	O
logic	O
by	O
packaging	O
the	O
SQL	B-Language
statements	O
in	O
XML	B-Protocol
configuration	O
files	O
.	O
</s>
<s>
The	O
result	O
is	O
a	O
significant	O
reduction	O
in	O
the	O
amount	O
of	O
code	O
that	O
a	O
developer	O
needs	O
to	O
access	O
a	O
relational	O
database	O
using	O
lower	O
level	O
APIs	O
like	O
JDBC	B-Language
and	O
ODBC	B-Application
.	O
</s>
<s>
Other	O
persistence	B-Library
frameworks	I-Library
such	O
as	O
Hibernate	B-Library
allow	O
the	O
creation	O
of	O
an	O
object	O
model	O
(	O
in	O
Java	B-Language
,	O
say	O
)	O
by	O
the	O
user	O
,	O
and	O
create	O
and	O
maintain	O
the	O
relational	O
database	O
automatically	O
.	O
</s>
<s>
iBATIS	B-Library
takes	O
the	O
reverse	O
approach	O
:	O
the	O
developer	O
starts	O
with	O
a	O
SQL	B-Language
database	I-Language
and	O
iBATIS	B-Library
automates	O
the	O
creation	O
of	O
the	O
Java	B-Language
objects	O
.	O
</s>
<s>
Both	O
approaches	O
have	O
advantages	O
,	O
and	O
iBATIS	B-Library
is	O
a	O
good	O
choice	O
when	O
the	O
developer	O
does	O
not	O
have	O
full	O
control	O
over	O
the	O
SQL	B-Language
database	I-Language
schema	O
.	O
</s>
<s>
For	O
example	O
,	O
an	O
application	O
may	O
need	O
to	O
access	O
an	O
existing	O
SQL	B-Language
database	I-Language
used	O
by	O
other	O
software	O
,	O
or	O
access	O
a	O
new	O
database	O
whose	O
schema	O
is	O
not	O
fully	O
under	O
the	O
application	O
developer	O
's	O
control	O
,	O
such	O
as	O
when	O
a	O
specialized	O
database	O
design	O
team	O
has	O
created	O
the	O
schema	O
and	O
carefully	O
optimized	O
it	O
for	O
high	O
performance	O
.	O
</s>
<s>
On	O
May	O
21	O
,	O
2010	O
the	O
development	O
team	O
forked	O
the	O
code	O
creating	O
a	O
new	O
project	O
called	O
MyBatis	B-Library
and	O
making	O
new	O
releases	O
there	O
.	O
</s>
<s>
As	O
a	O
consequence	O
the	O
Apache	B-Library
iBATIS	I-Library
project	O
became	O
inactive	O
and	O
was	O
moved	O
to	O
the	O
Apache	B-Application
Attic	I-Application
in	O
June	O
2010	O
.	O
</s>
<s>
For	O
example	O
,	O
assume	O
there	O
is	O
a	O
database	O
table	O
and	O
a	O
Java	B-Language
class	O
.	O
</s>
<s>
To	O
read	O
the	O
product	O
record	O
having	O
the	O
key	O
into	O
a	O
new	O
POJO	B-Language
,	O
the	O
following	O
mapping	O
is	O
added	O
into	O
an	O
iBATIS	B-Library
XML	B-Protocol
mapping	O
file	O
:	O
</s>
<s>
A	O
new	O
Java	B-Language
Product	O
object	O
can	O
then	O
be	O
retrieved	O
from	O
the	O
database	O
for	O
product	O
number	O
123	O
as	O
follows	O
:	O
</s>
<s>
If	O
the	O
parameter	O
is	O
a	O
Java	B-Language
object	O
,	O
then	O
values	O
from	O
properties	O
on	O
that	O
object	O
can	O
be	O
inserted	O
into	O
the	O
query	O
using	O
a	O
similar	O
#	O
notation	O
.	O
</s>
<s>
The	O
sqlMapClient	O
object	O
is	O
an	O
instance	O
of	O
class	O
com.ibatis.sqlmap.client.SqlMapClient	O
.	O
</s>
<s>
The	O
founder	O
of	O
iBATIS	B-Library
has	O
,	O
but	O
has	O
continued	O
to	O
release	O
new	O
versions	O
of	O
iBATIS	B-Library
for	O
Java	B-Language
.	O
</s>
<s>
The	O
framework	O
is	O
currently	O
available	O
in	O
Java	B-Language
,	O
.NET	B-Application
,	O
and	O
Ruby	B-Language
(	O
RBatis	O
)	O
versions	O
.	O
</s>
<s>
The	O
project	O
is	O
a	O
JavaScript	O
ORM	B-General_Concept
inspired	O
by	O
iBATIS	B-Library
.	O
</s>
<s>
The	O
Apache	O
iBator	O
tool	O
is	O
closely	O
related	O
:	O
it	O
connects	O
to	O
your	O
database	O
and	O
uses	O
its	O
metadata	O
to	O
generate	O
iBATIS	B-Library
mapping	O
files	O
and	O
Java	B-Language
classes	O
.	O
</s>
<s>
In	O
2001	O
a	O
project	O
called	O
iBATIS	B-Library
was	O
started	O
by	O
Clinton	O
Begin	O
.	O
</s>
<s>
The	O
first	O
product	O
to	O
be	O
released	O
by	O
iBATIS	B-Library
was	O
Secrets	O
,	O
a	O
personal	O
data	O
encryption	O
and	O
signing	O
tool	O
much	O
like	O
PGP	O
.	O
</s>
<s>
Secrets	O
was	O
written	O
entirely	O
in	O
Java	B-Language
and	O
was	O
released	O
under	O
an	O
open	O
source	O
license	O
.	O
</s>
<s>
That	O
year	O
Microsoft	O
published	O
a	O
paper	O
to	O
demonstrate	O
that	O
its	O
recent	O
.NET	B-Application
1.0	O
framework	O
was	O
more	O
productive	O
than	O
Java	B-Language
.	O
</s>
<s>
For	O
that	O
purpose	O
Microsoft	O
built	O
its	O
own	O
version	O
of	O
Sun	O
's	O
Web	O
"	O
Pet	O
Store	O
"	O
,	O
a	O
Web	O
project	O
that	O
Sun	O
had	O
used	O
to	O
show	O
Java	B-Language
best	O
practices	O
(	O
Java	B-Language
BluePrints	I-Language
)	O
.	O
</s>
<s>
Microsoft	O
claimed	O
that	O
.NET	B-Application
was	O
10	O
times	O
faster	O
and	O
4	O
times	O
more	O
productive	O
than	O
Java	B-Language
.	O
</s>
<s>
In	O
2002	O
Clinton	O
developed	O
an	O
application	O
called	O
JPetStore	O
to	O
demonstrate	O
that	O
Java	B-Language
could	O
be	O
more	O
productive	O
than	O
.NET	B-Application
and	O
could	O
also	O
do	O
so	O
while	O
achieving	O
a	O
better	O
architecture	O
than	O
was	O
used	O
in	O
the	O
Microsoft	O
implementation	O
.	O
</s>
<s>
JPetStore	O
1.0	O
had	O
a	O
big	O
impact	O
and	O
the	O
database	B-Application
layer	I-Application
that	O
Clinton	O
used	O
attracted	O
the	O
attention	O
of	O
the	O
community	O
.	O
</s>
<s>
Soon	O
,	O
iBATIS	B-Library
Database	B-Application
Layer	I-Application
1.0	O
project	O
started	O
,	O
composed	O
of	O
two	O
components	O
:	O
iBATIS	B-Library
DAO	O
and	O
iBATIS	B-Library
SQL	B-Language
Maps	O
.	O
</s>
<s>
iBATIS	B-Library
2.0	O
was	O
released	O
in	O
June	O
2004	O
.	O
</s>
<s>
Clinton	O
donated	O
the	O
iBATIS	B-Library
name	O
and	O
code	O
to	O
Apache	O
Software	O
Foundation	O
and	O
the	O
project	O
stayed	O
in	O
the	O
ASF	O
for	O
six	O
years	O
.	O
</s>
<s>
Eventually	O
iBATIS	B-Library
DAO	O
was	O
deprecated	O
,	O
considering	O
that	O
better	O
DAO	O
frameworks	O
were	O
available	O
,	O
such	O
as	O
Spring	B-Application
Framework	I-Application
.	O
</s>
<s>
On	O
May	O
19	O
,	O
2010	O
iBATIS	B-Library
3.0	O
was	O
published	O
and	O
simultaneously	O
the	O
development	O
team	O
decided	O
to	O
continue	O
the	O
development	O
of	O
the	O
framework	O
at	O
Google	B-Protocol
Code	I-Protocol
.	O
</s>
<s>
under	O
a	O
new	O
project	O
called	O
MyBatis	B-Library
.	O
</s>
<s>
On	O
June	O
16	O
,	O
2010	O
Apache	O
announced	O
that	O
iBATIS	B-Library
was	O
retired	O
and	O
moved	O
to	O
the	O
Apache	B-Application
Attic	I-Application
.	O
</s>
