|
From: Alexandru P. <the...@ez...> - 2005-03-23 17:01:21
|
Thanks everybody for your answers. My case is pretty uncommon: i am trying to integrate the H3 support into the existing stable 1.1.5 version. You may ask why this? I need some of the features from H3 (simple, ain't it :-) ). So, being a week old Spring user (in fact i haven't write a single line of code, so I would say Spring researcher) I thought it would be a good idea to ask the developers if my feeling was right. -- :alex |.::the_mindstorm::.| [quote Mark St Godard::on 3/23/2005 5:23 PM] > > > > Yeah Alex, > > For me (as an Eclipse user) it was just an exercise in CTRL-Shift-O to > reference the new APIs... and to also change > the applicationContext XML to reference the new LocalSessionFactoryBean... > > Note: I was not using Annotations at this point on this current project... > so it was pretty straightforward > > Cheers > Mark > > > > Colin Sampaleanu > <col...@ex... > m> To > Sent by: spr...@li... > springframework-d rceforge.net > eveloper-admin@li cc > sts.sourceforge.n > et Subject > Re: [Springframework-developer] > Hibernate3 vs Hibernate2 > 03/23/2005 09:10 > AM > > > Please respond to > springframework-d > eveloper > > > > > > > Alexandru Popescu wrote: > >>Hi! >> >>I saw in the ML that the Hibernate3 support is in CVS HEAD already. Can > you point me to the main >>changes provided in the Spring support for Hibernate3 vs Hibernate2? (i > expected there where changes >>required by the changes (from check to unchecked) exceptions in Hibernate3 > and for supporting the >>new features, but it will be more easy for me to have a Spring expert > opinion on this). >> >> > Alex, > > Juergen did the actual conversion, so is the final authority, but the > port is mostly a straight port of the existing classes to reflect the > new packages used by Hibernate 3. One difference in Hibernate 3 is that > Hibernate 3 does throw unchecked exceptions instead of checked > exceptions, but Spring users should actually be insulated from that, as > they would have normally be catching Spring's own unchcked > DataAccessExceptionHierarchy. Spring's HibernateTemplate class for > Hibernate v3 does add the important methods added to v3's Session, such > as the 'load()' variants which take an entityName, e.g.: > http://www.hibernate.org/hib_docs/v3/api/ > > Generally, you should be able to take existing Spring-based code using > the Hibernate 2 support, and convert it to using the Hibernate 3 > support, by just changing all org.springframework.hibernate.* package > names to org.springframework.hibernate3.*. Any breakage (not that you > should generally expect any) should generally be from changes in > Hibernate itself between versions, and not the Spring support code. Note > that Hibernate has actually deprecated a few methods on the Session > interface (they are only available now as part of the > org.hibernate.classic.Session interface. I believe HibernateTemplate has > also removed some of the methods which were directly exposed and are now > deprecated. > > Colin > > > > ------------------------------------------------------- > This SF.net email is sponsored by: 2005 Windows Mobile Application Contest > Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones > for the chance to win $25,000 and application distribution. Enter today at > http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: 2005 Windows Mobile Application Contest > Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones > for the chance to win $25,000 and application distribution. Enter today at > http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |