I think that with hibernate you don't need to write sql code to save/update/delete your objects or to retrieve objects by their id, with ibatis you have to write all your sql code.
Example with hibernate (pseudo-code...): session.find(MyObject, id); MyObject.setProp1(newvalue) session.save() // automatically execute an update on your db You don't have to write a line of sql with hibernate... (except for queries like "select from MyObject where age>23") Anyway I'm not a Guru, so I could be wrong... > -----Messaggio originale----- > Da: Mark Lowe [mailto:[EMAIL PROTECTED] > Inviato: lunedi 16 febbraio 2004 11.09 > A: Struts Users Mailing List > Oggetto: Re: persistent data storage - the right way > > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]