PDA

View Full Version : Hibernate


michael1d
12-20-2004, 11:42 PM
Hi,

I am interested in the timeframe for a release of Spring.NET with declarative transaction management and support classes for Hibernate.

We are looking very closely at Hibernate and Spring in the .NET environment as the basis for our enterprise architecture.

Thanks in advance,

Mike

Mark Pollack
12-23-2004, 03:35 PM
Hi,

Declarative tx-management is near completion and work is starting on exploring a small ado.net abstraction layer similar in spirit to the jdbc templates in spring.java and the MS enterprise library for data access. This is probably going to take us into next spring (march?) - at which point we would start to look at data access support for the myriad of data access libraries out there. If you are interested in helping out to push this forward let me know.

Cheers,
Mark

Anonymous
01-07-2005, 05:44 AM
Hi,

I am currently involved in a project where we are using NHibernate for data access. I am looking at whats required to implement a NHibernate based PlatformTransactionManager, using the work thats been done for ado.net based data access.

rob

Mark Pollack
01-07-2005, 07:20 AM
Hi Rob,

Sounds great, you should get in touch with Griffin Caprio who has done quite alot of the tx work.

Cheers,
Mark

Anonymous
01-26-2005, 05:12 AM
You can find a lot of stuff on data access in spring framework implemented in Java, but there is nothing in c#.

jonas_antonsson
02-03-2005, 05:20 PM
I am currently building a framework that will be the basis for every software product made by the company I work for. I've cast my hopes on Spring and nHibernate (both teriffic projects) in regard to 3td party solutions for O/R mapping, data access and IOC - which I will incorporate into our framework (which is both a code and business rule abstraction).

Currently I'm kinda swamped but in the near future I'd like to aid development of both projects. In the meantime I'll try to abstract some documentation and example code from my efforts. If successful I'll try to post them or send them in so they may benefit others as well.

But I am really really really looking forward to a Spring abstraction lair for Data Access - It was well implemented in the Java version and I'm confident that the .Net version will be awesome as well.

Mark Pollack
02-03-2005, 05:40 PM
Hi Jonas,

Thanks for the well wishes and your help is more than welcome! Let me know if there is anything I can do to help you get started.

Take a look what is already in CVS for Data Access - Griffin Caprio is the lead developer for that. Recently Jason Gerard was developing functionality along the lines of the jdbc.object package in Spring.Java but has not yet commited his work.

Cheers,
Mark

Anonymous
03-14-2005, 06:49 PM
But I am really really really looking forward to a Spring abstraction lair for Data Access - It was well implemented in the Java version and I'm confident that the .Net version will be awesome as well.

I am looking forward for this feature as well. It will benefit a lot of .NET developers who are trying to build framework-based solution. Personally, I learned a lot from the Java implementation. Hope it can be part of the production release.

Mark Pollack
03-14-2005, 06:55 PM
I agree. We are working on it!
Cheers,
Mark

JasonGerard
03-14-2005, 09:36 PM
I was going to commit some code yesterday for the Data Access Layer but was having problems with CVS (it's been awhile, got too used to VSS).

Hopefully I'll get them straightened out and start committing more Template stuff tonight. The object namespace will follow shortly after.

liang
03-15-2005, 08:17 PM
I was going to commit some code yesterday for the Data Access Layer but was having problems with CVS (it's been awhile, got too used to VSS).

Hopefully I'll get them straightened out and start committing more Template stuff tonight. The object namespace will follow shortly after.

That is great! Thanks! I am not familiar with CVS. Just want to know when you check in the files, will replace the existing ones? In other words, how can we check out your files? And please notify us when you are done!

JasonGerard
03-16-2005, 12:35 AM
That is great! Thanks! I am not familiar with CVS. Just want to know when you check in the files, will replace the existing ones? In other words, how can we check out your files? And please notify us when you are done!

I checked the code in last night.

You can go here http://sourceforge.net/cvs/?group_id=106751 to see the CVS repository. You can browse the repositry with your internet browser. There are also instructions on how to download the files using a CVS client.

Jason

liang
03-16-2005, 03:14 PM
I checked the code in last night.

You can go here http://sourceforge.net/cvs/?group_id=106751 to see the CVS repository. You can browse the repositry with your internet browser. There are also instructions on how to download the files using a CVS client.

Jason

That is great! Thank your Jason!! I have checked out the files. Could you tell us breifly what you have done?

JasonGerard
03-16-2005, 09:02 PM
That is great! Thank your Jason!! I have checked out the files. Could you tell us breifly what you have done?

The Spring.Ado.Core.AdoTemplate class was added. It implements IAdoOpertions.

Spring.Ado.Core.Support.SqlClientTemplate was refactored to extend AdoTemplate rather than implement IAdoOperations directly.

What this provides is the ability to add new data provider templates by subclassing AdoTemplate and implementing 4 simple methods. Specifically, those methods are, CreateConnection(), CreateDataAdapter(), CreateDateParameter(), and the ParameterPrefix property. All of these are abstract in AdoTemplate. Check out SqlClientTemplate for the SQL Server implementation.

Now adding support for Oracle, OLEDB, DB2, etc... is much simpler.

I will be adding a port of the object package soon. It allows for a more OO approach to data access as well as very basic ORM features. I will also add Template implementations for the other Data Providers packaged with the .NET framework (Oracle, Odbc, OleDb).

liang
03-16-2005, 09:53 PM
That is really nice, Thanks again Jason!
I am wondering if we can put a list to see what is left in the data access layer comparing with the implemenation in SpringFramework Java?

Anonymous
03-23-2005, 09:26 AM
Hi,

First of all, thank you all for creating such great frameworks and tools :)

I'm currently building an application with Spring.NET et NHibernate.
I was asking myself the same questions as michael1d, in the beginning of this thread, regarding the support classes for NHibernate.

I had a look in the cvs repository but saw that nothing was yet available (or maybe I looked at the wrong place).

So, for the moment, I could do without and use directly the nhibernate session in my dao's and handle its lifecycle there. And wait until the template/support classes are available.
But as development of my application goes on, this would require maybe too many changes and too much time to adapt my code. So I'm planning to develop temporary versions of the template and support classes, to make sure nhibernate calls in my dao won't have to be changed later.
I would follow the java version closely so it would be mainly a java->c# code translation.

It's obvious that I could later commit my code, if somebody's interested in it...

If anybody has already done this kind of stuff, could you please tell if it's available anywhere ?

Thanks.

tahitibob
03-23-2005, 09:29 AM
forgot to log in :roll:
That was me above...

PS : isn't this a problem that anyone not logged in can post ?

JasonGerard
03-23-2005, 12:21 PM
So, for the moment, I could do without and use directly the nhibernate session in my dao's and handle its lifecycle there. And wait until the template/support classes are available.
But as development of my application goes on, this would require maybe too many changes and too much time to adapt my code. So I'm planning to develop temporary versions of the template and support classes, to make sure nhibernate calls in my dao won't have to be changed later.
I would follow the java version closely so it would be mainly a java->c# code translation.

The stuff I'm currently working on is not for NHibernate support, it's strictly a port of the jdbc package and it's subpackages from Spring.Java. I know a few other people have asked for NHibernate support in some other threads, if you search the forums you should be able to find them. I know at least one poster was interested in doing the NHibernate integration. I don't know of anyone working on this, though.

If you'd like to do the port, but don't know where to get started, feel free to e-mail me directly with any questions.

-Jason

Mark Pollack
03-24-2005, 02:50 PM
Hi Bob,

Email me and we can talk more about NHibernate integration. Thanks for bringing up the anonymous posting on the forums. I've changed the phpBB forum permission to "Registered" Anonymous browing but registration for posting.

Cheers,
Mark

jonas_antonsson
03-29-2005, 12:54 AM
Hi guys,

I'm currently working on a project that involves both Spring and NHibernate. We're looking into what steps we'll take regarding integrating the two. For now we haven't coupled the two together but we're interested in doing so.

One possibility is that we'll do some preliminary work regarding this. If we do then I'll let you know Mark. Another possibility is that we'll postpone any integration between the two frameworks until this fall (which would probably mean new developments regarding both projects).

J#

Mark Pollack
03-29-2005, 01:12 AM
Hi,

We will be looking into this integration before the fall for sure...

Cheers,
Mark

jacksonpd
04-15-2005, 08:03 AM
I was wondering if there is an outline of the data access service in a similar vein to the spring.web service?

Also I wondering how stable it is? Is it (or parts of it) usable in current projects?

Mark Pollack
04-15-2005, 02:29 PM
Hi,

There isn't an outline I can point you to yet. :( The plan is to release comprehensive data access package in the 0.8 time frame, which is in the middle of the summer. We will put up docs for the ado.net and platform tx mgr code that is in cvs once we beat it up a little bit more and do some more development. The rough outline in terms of transaction management follows that of spring.java. Platform tx managers, dao exception hierarchy, declartive tx support, and utility classes that make using ado.net, ibatis, nhibernate, (neo wilson, etc...) easier and remove the need to perform resource management are also on the roadmap. The relationship with enterprise service tx's is to be investigated. I've looked into iBatis.NET and Rick has as well. Right now Jason is the active user of the ado.net code in cvs. We understand the great need for this support in spring.net and I expect great things this year in terms of rounding out the full spring.net framework - hang in there :)

Cheers,
Mark