One advantage hibernate has over ibatis is xdoclet support. You can generate your mapping files from xdoclet comments which means that you have the mappings and java code in the same place.
Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages vs disadvantages I haven't a clue about as I've never used ibatis.




On 16 Feb 2004, at 04:11, David Friedman wrote:

I use hibernate so, yes, I think it is a
good alternative. :)

Regards,
David

-----Original Message-----
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 15, 2004 8:56 PM
To: Struts Users Mailing List
Subject: Re: persistent data storage - the right way


is Hibernate another good alternative ? --- Oliver Thiel <[EMAIL PROTECTED]> wrote:
Hi,


you can use iBatis [http://www.ibatis.com/] and take a look at this example/tutorial: http://www.reumann.net/do/struts/ibatisLesson1 (using: Struts - DAO - iBatis )


I think this is what your looking for. Oliver


hello,

i have been looking (in vain) for a description
how to implement database
access in struts correctly. i would like to use
the DAO (data access
object)
pattern in combination with datasources for
connection pooling. however, i
am having a hard way figuring out how to implement
the whole and to
decouple
my actions from knowing about the implementation
of the DB.

the example application bundled with struts uses a
plugin to set up
everything in the application context - is this
the right way to go about
things? i am planning on using postgresql for the
moment but would like to
foresee possible changes in the future.

any examples or pointers in the right direction
would be very much
appreciated.

thanks,

Ben.




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


-- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++



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



__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



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



Reply via email to