View Full Version : Sandbox and AdoExceptionTranslator
Hi Guys,
Just started looking at Spring.Net and really like it. I'm particulary interested in the intergration with nHibernate. I've been looking in the sandbox and trying to build Spring.Data.Orm.NHibernate but I think the Sandbox Spring.Data project is missing from the nightly builds, they fail particulary on AdoExceptionTranslator, which doesn't exist. Does anyone know where I can get it from.
thanks
Ico
Bruno Baia
07-24-2006, 01:39 PM
Hi,
you right, i got the same problem here, i'll ping Mark about this.
-Bruno
Thanks, that would be great.
DeV1L
07-24-2006, 02:59 PM
Seems like it's enough to change AdoExceptionTranslator to IAdoExceptionTranslator and in SessionFactoryUtils declare
public static IAdoExceptionTranslator NewAdoExceptionTranslator(ISessionFactory factory)
{
return new FallbackExceptionTranslator();
}
Mark Pollack
07-25-2006, 03:29 AM
Hi!
Well I've finally "moved" the sandbox code for NHibernate into its final resting place, under a new top level cvs module called Spring.Net.Integration. (See fisheye (http://fisheye1.cenqua.com/browse/springnet/Spring.Net.Integration) for more info) The intention is to have a seperate release cycle for the NHibernate integration as compared to the core tx mgmt/dao features in Spring.Data. I'll be removing the NHibernate code from the sandbox once anonymous CVS servers have time to catch up. There is also more "example" code under the Integration.Tests directory. Docs and a proper example are forthcoming...
You can pick up daily builds of Spring.Data.NHibernate (I've changed the namespace) on the web site here. (http://www.springframework.net/downloads/Spring.Data.NHibernate/)
You can trigger off a new build on the cruisecontrol site if you like.
I've also added Spring.Data to the nightly build (need to double check) and I removed the method in question, (NewAdoExceptionTranslator) as I'm not 100% sure we need it and it isn't used now. Thanks for reporting that.
There are some other minor odds and ends, like always building against the "latest" Spring.Data code (for now) but this is a good step to getting a stable NHibernate release out the door. I'll make a wider annoucement tomorrow.
Cheers,
Mark
DeV1L
07-25-2006, 07:53 AM
The requested URL /downloads/nightly/Spring.Data.NHibernate-20060724-2203.zip was not found on this server.
Bruno Baia
07-25-2006, 08:59 AM
http://www.springframework.net/downloads/Spring.Data.NHibernate/Spring.Data.NHibernate-20060724-2203.zip
-Bruno
Thanks everyone, will download it now and have a play :-D
Aleksei Kachanov
07-25-2006, 01:16 PM
Mark,
What about OpenSessionInView module,
would you plan implement it in early future.
Thanks
Mark Pollack
07-25-2006, 04:17 PM
Hi,
To kick start the development of OpenSessionInView functionality I've commited the code posted by jjx, http://forum.springframework.net/showthread.php?t=398
I haven't exercised it yet and we we need to modify our strategy of thread local storage to use the http context items area instead of 'standard' thread local storage....
Cheers,
Mark
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.