In my limited experience of it, it produces much cleaner code, and
seperates concerns very well.

For example, NONE (yep, none) of my code has any transaction information in
it!  It is abstracted out using Spring's AOP, and instead is defined in
Spring's xml file (very easily) and seamlessly handled by Spring and
Hibernate.  And, yes, Spring handles Hibernate sessions seamlessly too.  In
fact, Spring's integration with Hibernate is superb.

It takes a while to get used to AOP (Aspect Orientated Programming) but
there are lots of intro articles out there, and Matt Raible has some
hand-holding tutorials on setting up Spring and Hibernate.

Cheers,

David



|---------+---------------------------->
|         |           "David Friedman" |
|         |           <[EMAIL PROTECTED]|
|         |           .com>            |
|         |                            |
|         |           09/01/2004 04:50 |
|         |           PM               |
|         |           Please respond to|
|         |           "Struts Users    |
|         |           Mailing List"    |
|         |                            |
|---------+---------------------------->
  
>------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                    |
  |       To:       "Struts Users Mailing List" <[EMAIL PROTECTED]>                    
                               |
  |       cc:                                                                          
                                    |
  |       Subject:  RE: Hibernate VS ibatis, which is better?                          
                                    |
  
>------------------------------------------------------------------------------------------------------------------------|




+1 on the "Why should I use Spring" and "beat me over the head until I use
it" statement.

:)

-----Original Message-----
From: Joe Hertz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 4:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Hibernate VS ibatis, which is better?


I love Hibernate. Really do.

Only bad thing about it is that I find is that I get better Hibernate help
here than I do in the Hibernate forum. Which well...you see what that
doesn't bother me :-)

Apparently Spring fixes my gripe with Hibernate/Struts about constantly
opening sessions/transactions, so I'm *very* curious. I just need someone
to
beat me over the head with why else it is so wonderful.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 4:40 PM
> To: Struts Users Mailing List
> Subject: Re: Hibernate VS ibatis, which is better?
>
>
>
> Just started using Hibernate, and it is VERY cool!  Tie that in with
> Spring, and Struts, and you have quite a combination.
>
>
>
>
> |---------+---------------------------->
> |         |           "struts Dude"    |
> |         |           <[EMAIL PROTECTED]|
> |         |           o.nz>            |
> |         |                            |
> |         |           09/01/2004 04:36 |
> |         |           PM               |
> |         |           Please respond to|
> |         |           "Struts Users    |
> |         |           Mailing List"    |
> |         |                            |
> |---------+---------------------------->
>
> >-------------------------------------------------------------
> -----------------------------------------------------------|
>   |
>                                                              |
>   |       To:       "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
>              |
>   |       cc:
>                                                              |
>   |       Subject:  Hibernate VS ibatis, which is better?
>                                                              |
>
> >-------------------------------------------------------------
> -----------------------------------------------------------|
>
>
>
>
> Hello
>
> Just want some feedback from ppl who know
> both. Which one is more powerful and easier
> to use?
>
> Personally I only know iBatis but seeing so
> many web app built on hibernate and even
> a book on hibernate to be published, just
> wandering if it's worth my time to learn hibernate.
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> 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]






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

Reply via email to