-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 
Author Message
 Post subject: NHibernate Membership Provider
PostPosted: Sun Apr 22, 2007 11:07 am 
Beginner
Beginner

Joined: Tue Feb 13, 2007 9:29 pm
Posts: 21
Anybody knows if there is an exisiting "free" AsP.NET 2.0 Membership provider that I can use implemented using NHibernate?

I guess I can use the default provider, but just thought it will be cool to make it a "pure" nhibernate application.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 23, 2007 11:44 am 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
There is one here,

http://www.codeplex.com/nhibernateprovider

I checked the source out a ways back and ultimately decided it wasnt the proper approach for me, but you may think differently.


Top
 Profile  
 
 Post subject: Thanks
PostPosted: Tue Apr 24, 2007 4:39 pm 
Beginner
Beginner

Joined: Tue Feb 13, 2007 9:29 pm
Posts: 21
jnapier wrote:
There is one here,

http://www.codeplex.com/nhibernateprovider

I checked the source out a ways back and ultimately decided it wasnt the proper approach for me, but you may think differently.



Awesome. Thanks a lot man. I just want to use pure nhibernate solution..

Although I do want to test out if transaction is possible with the provider because it will be great to have.


Top
 Profile  
 
 Post subject: Re: NHibernate Membership Provider
PostPosted: Mon May 14, 2007 10:42 am 
Newbie

Joined: Mon May 14, 2007 10:38 am
Posts: 10
I have also created an open source NHibernate providers (Membership, Roles, Profiles, Forum, News...).

You can download it from:
http://www.devage.com/Wiki/ViewArticle. ... &version=0
or
http://www.codeproject.com/useritems/eucalypto.asp

Davide


Top
 Profile  
 
 Post subject: Re: NHibernate Membership Provider
PostPosted: Thu May 17, 2007 7:43 pm 
Regular
Regular

Joined: Fri Feb 18, 2005 3:34 am
Posts: 88
Location: Poland/Wrocław
dvi2006 wrote:
I have also created an open source NHibernate providers (Membership, Roles, Profiles, Forum, News...).


Have you ever considered Spring.Net integration? I mean an integration with respect to the spring way of data dealing - abstract DAO objects, where particular case uses NH (Spring.NHibernate12 inegration project).

This introduces two benefits:
1. We can have allternative DAO implementations (we could even drop NH for other technology).
2. We can use DI for Eucalypto and DI of Eucalypto to the client code.


I've investigated your code and see that interfaces would have to be introduced + NH implementations of XXXDataStore classes in the spring way (using HibernateDaoSupport class). Also the managers would potentially require interfaces additionally. No static members would be allowed there then. There's quite a lot to do... but IMO it's worth that effort, isn't it?

_________________
Please rate this post if you've found it helpfull
Roland


Top
 Profile  
 
 Post subject: Re: NHibernate Membership Provider
PostPosted: Fri May 18, 2007 3:58 am 
Newbie

Joined: Mon May 14, 2007 10:38 am
Posts: 10
rolandz wrote:
Have you ever considered Spring.Net integration?


I must admit that I'm not an expert of Spring.
Sometime ago I have studied the best way to implement Eucalypto (I have looked at Spring and CastleProject) but at the end I have decided to just use the ASP.NET provider pattern.

I known that Spring is more powerful (and has many more features: transactions, configuration, ...) but I think that the provider pattern is quite similar to the IoC pattern of Spring (correct me if I'm wrong).
I think that the provider pattern can be already used to implement different data access strategies and it is quite easy to use.

Consider also that I have used the provider pattern to replace the default Membership, Roles and Profiles ASP.NET classes.

What do you think?

Anyway I will look again at Spring, can be useful also for other projects ...

Davide


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 1:42 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
Ioc or dependency injection is a way to inject different providers. Provider pattern is not the same thing. They work together.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 2:02 pm 
Newbie

Joined: Mon May 14, 2007 10:38 am
Posts: 10
jnapier wrote:
Ioc or dependency injection is a way to inject different providers. Provider pattern is not the same thing. They work together.


Yes I known that is not the same, but I think that both try to solve the same problem: a more flexible way to create classes and to connect the classes together.

I think that IoC is more powerful but I think that these 2 patterns are similar.
Right?


Davide


Top
 Profile  
 
 Post subject: Re: NHibernate Membership Provider
PostPosted: Sat May 19, 2007 3:06 am 
Regular
Regular

Joined: Fri Feb 18, 2005 3:34 am
Posts: 88
Location: Poland/Wrocław
dvi2006 wrote:
rolandz wrote:
Have you ever considered Spring.Net integration?


Consider also that I have used the provider pattern to replace the default Membership, Roles and Profiles ASP.NET classes.


This diagram demonstrates how easy it is to integrate membership providers with spring:

http://zerek.pl/roland/Spring-Membership.emf

Quote:
Anyway I will look again at Spring, can be useful also for other projects ...


I have provided rough design with respect to the forum subsystem. Bellow you can see current state of Eucalypto:

http://zerek.pl/roland/Eucalypto-Current.emf

And my integration design:

http://zerek.pl/roland/Eucalypto-Spring.emf

There are potentially few changes. The use of forum (by the client code) remains unchanged. However I would be able to have several different architectures of the underlying layers of Eucalypto. And of course DI benefits.

Personally I will need this kind of the integration because I would like to have other domains in the database (that are not currently handled by Eucalypto and I want them to be handled in the spring way so the use of eucalypto is not enough for me). That's exactly why I'm asking for this integration.

Anyway - I possibly will do this integration... Any opinions and suggestions are welcome.

Cheerz :)

_________________
Please rate this post if you've found it helpfull
Roland


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 19, 2007 9:06 am 
Newbie

Joined: Wed Jun 21, 2006 2:45 pm
Posts: 16
Great question:

Is the nhibernate provider here using the latest NHibernate 1.2 ?

I'm very interested in using this on a current solution.


Top
 Profile  
 
 Post subject: Re: NHibernate Membership Provider
PostPosted: Sat May 19, 2007 9:26 am 
Newbie

Joined: Mon May 14, 2007 10:38 am
Posts: 10
rolandz wrote:
Anyway - I possibly will do this integration... Any opinions and suggestions are welcome.


Seems to be an interesting idea.

In these weeks I'm a little busy with another project and probably I need some days to be productive with Spring so I think that is better that you work on this integration. But if you want I can help you on some aspects and of course I will really appreciate if we can share the results.

In this case my only suggestion is to create a new provider so we can select the provider to use at any moment without breaking changes.
Maybe you can call it SpringForumProvider, like in this image:
http://www.devage.com/temp/EucalyptoSpringDiagram.png
If you prefer you can also work on a separate assembly.

Consider that you can access the subversion repository for the latest version of Eucalypto at this link:
https://svn.quanticosoft.com/devage/

Thanks for your suggestions and write me if you need help or you need some changes on the Eucalypto classes.
My email is: davide AT devage DOT com

Davide


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 19, 2007 9:31 am 
Newbie

Joined: Mon May 14, 2007 10:38 am
Posts: 10
SteveG wrote:
Great question:

Is the nhibernate provider here using the latest NHibernate 1.2 ?

I'm very interested in using this on a current solution.


Eucalypto 1.3 (currently available only on subversion but soon I will release an official version) uses NHibernate 1.2.0.4000.
Eucalypto 1.2 uses NHibernate 1.2.0.3001.

Davide


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.