I use iBATIS because it is the least intrusive of the two (among other things).

It is also MUCH simpler to integrate into an existing
database/project, because it works around your database structure
instead of making you change your database structure to meet the needs
of your persistence mechanism.

SQL mapping with iBATIS is basically JDBC made simple.

Like as in "simple as a smooth stone" simple.

For example, you create mapped statements (in XML) like this:

<update id="update">
UPDATE AccountSpecs SET
        kind = #kind#,
        spectype = #specType#,
        updated = #updated#,
        updatedby = #updatedBy#
WHERE
        accountid = #accountId# AND
        path = #path#
</update>

Then you call them in code passing either a bean or a map that has
named values for all parameters - like #path# for example expects a
"path" property or map entry. Here is an example form a project I am
working on:

public int update(AccountSpec accountSpec) {
        return update("AccountSpecs.update", accountSpec);
}

Simple.

Larry


On 1/10/06, Raghu Kanchustambham <[EMAIL PROTECTED]> wrote:
> And why is that ?
>
>
> On 1/10/06, [EMAIL PROTECTED] <
> [EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I would suggest you begin with iBATIS.
> >
> > http://ibatis.apache.org
> >
> >
> >
> > Thanks and Regards,
> > S.Ramkumar
> > Associate Consultant - Investment Banking
> > PrimeSourcing(tm)   "Add Value Reduce Risk"
> > i-flex solutions limited, Bangalore
> > Ph:+ 91-80- 22086000/57596000- extn 6873
> > E-Mail:[EMAIL PROTECTED]
> >
> > -----Original Message-----
> > From: JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
> > [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 10, 2006 12:56 PM
> > To: 'Struts Users Mailing List'
> > Subject: which one is best for DATA PERSISTENCE
> >
> > Hi all,
> >
> >
> >
> > For my project we are doing lot of database actions such as inert,
> > update,
> > delete and read.
> >
> > For that which java frameworks is best to use?
> >
> >
> >
> > Hibernate or iBATIS or anyother?
> >
> >
> >
> > Please let me know.
> >
> >
> >
> > Regards,
> >
> > JEEVANANTHAM PARAMASAMY,
> >
> >
> >
> >
> >
> > --
> > Greetings!
> >
> >
> >
> >
> > ICICI Infotech is now 3i Infotech.
> >
> >
> > The e-mail addresses of the company's employees have been changed to
> > <existing name>@3i-infotech.com. You are requested to take note of this
> > new e-mail ID and make use of the same in future
> >
> >
> > "This e-mail message may contain confidential, proprietary or legally
> > privileged information. It should not be used by anyone who is not the
> > original intended recipient. If you have erroneously received this
> > message, please delete it immediately and notify the sender. The
> > recipient acknowledges that 3i Infotech or its subsidiaries and
> > associated companies, (collectively "3i Infotech"), are unable to
> > exercise control or ensure or guarantee the integrity of/over the
> > contents of the information contained in e-mail transmissions and
> > further acknowledges that any views expressed in this message are those
> > of the individual sender and no binding nature of the message shall be
> > implied or assumed unless the sender does so expressly with due
> > authority of 3i Infotech. Before opening any attachments please check
> > them for viruses and defects."
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to