tag:blogger.com,1999:blog-3924739636407907202.post7136624669705139507..comments2023-10-07T05:59:41.036-03:00Comments on HunabKu: NHibernate IoC integrationFabio Maulohttp://www.blogger.com/profile/13558454874302740335noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-3924739636407907202.post-24895847457431358752009-08-06T20:16:23.801-03:002009-08-06T20:16:23.801-03:00Thanks to Fabio for donating his code. You can fin...Thanks to Fabio for donating his code. You can find the ByteCodeProvider in the new NH 2.1 integration package coming with Spring 1.3RC at http://www.springframework.netErich Eichingerhttps://www.blogger.com/profile/01777569034256321263noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-89525626531297585172009-05-29T11:58:44.195-03:002009-05-29T11:58:44.195-03:00well done Chad.well done Chad.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-4907171935975573892009-05-29T11:44:57.749-03:002009-05-29T11:44:57.749-03:00I posted an implementation with Autofac here:
htt...I posted an <A HREF="http://chadly.net/post/2009/05/28/Dependency-Injection-with-NHibernate-and-Autofac.aspx" REL="nofollow">implementation with Autofac</A> here:<br /><br />http://chadly.net/post/2009/05/28/Dependency-Injection-with-NHibernate-and-Autofac.aspxChad Leehttps://www.blogger.com/profile/13663900921216299483noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-6046509912043316792009-05-27T16:47:55.584-03:002009-05-27T16:47:55.584-03:00Thanks fabio. I also hope that those things will b...Thanks fabio. I also hope that those things will be in Spring.Data.NHibernate in the future.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-55175757063331663322009-05-25T16:08:40.829-03:002009-05-25T16:08:40.829-03:00Ah... about "Spring.Data.NHibernate" is ...Ah... about "Spring.Data.NHibernate" is because I hope that Mark will implement and maintain it directly in Spring. Waiting Spring's team you can use uNhAddIns or copy&paste the code you need.Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-650986528570986992009-05-25T16:04:36.292-03:002009-05-25T16:04:36.292-03:00Sure they are different. The part on NH is only th...Sure they are different. The part on NH is only the proxy provider (using Spring AOP). What you can see in uNhAddIns is the entirely Bytecode (full integration with Dependency-Injection and AOP stuff)Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-57024584402365044832009-05-25T15:59:53.247-03:002009-05-25T15:59:53.247-03:00I just spotted this in the uNhAddIns Bytecodeprovi...I just spotted this in the uNhAddIns Bytecodeprovider: <br />// A better place for this classes is Spring.Data.NHibernate<br />Does that implementation differ from that one in the NHibernate trunk you talk about here: http://nhforge.org/blogs/nhibernate/archive/2009/03/03/nhibernate-with-spring-net.aspx<br />Anyways, thanks for the spring.net support :)tobsenhttps://www.blogger.com/profile/11139392387746884577noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-15604055085428353402009-05-25T09:39:51.035-03:002009-05-25T09:39:51.035-03:00Sure it is only a matter of time. If you have time...Sure it is only a matter of time. If you have time to spent in it you are welcome. The first step is the proxy of the session (SessionWrapper of uNhAddIns).Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-11874306411685269322009-05-25T05:23:09.200-03:002009-05-25T05:23:09.200-03:00I am familiar with (and like) Unity. Any plans (o...I am familiar with (and like) Unity. Any plans (or chance of) support for that?Peter Leslie Morrishttps://www.blogger.com/profile/09377536995235480828noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-19153059202042158912009-05-25T00:52:47.696-03:002009-05-25T00:52:47.696-03:00So far only programmatic conf..
Btw if we will ena...So far only programmatic conf..<br />Btw if we will enable the configuration trough XML conf. it will be available only inside app.config or web.config because, as you saw, the Bytecode provider must be set before call cfg.Configure()Fabio Maulohttps://www.blogger.com/profile/13558454874302740335noreply@blogger.comtag:blogger.com,1999:blog-3924739636407907202.post-28864127406964628782009-05-24T22:12:56.651-03:002009-05-24T22:12:56.651-03:00Any examples how to configure it?
Environment.Byt...Any examples how to configure it?<br /><br />Environment.BytecodeProvider = new EnhancedBytecode(container);<br /><br />Or is there a way to do it from hibernate.cfg.xml?Chad Leehttps://www.blogger.com/profile/13663900921216299483noreply@blogger.com