PDA

View Full Version : can acegi use hibernate?



creatxr
Feb 1st, 2005, 11:23 AM
can acegi use hibernate?

jpwinans
Feb 1st, 2005, 03:32 PM
Hey, I'm certainly no expert here. But I would guess that since Acegi is built on the Spring Framework, and Spring can use Hibernate, Acegi should be able to use Hibernate as well. I'm assuming you want to use it in your authenticationDao. It is probably just a matter of configuration. I too will be attempting that approach, so if I get it, I'll post it here.

-James

Rexxe
Feb 1st, 2005, 04:46 PM
If you want to use it for authenticating, you will need to simply write your own AuthenticationDAO (i.e. implement AuthenticationDAO) and then extend HibernateDaoSupport.

--Rexxe

scqlbw
Feb 2nd, 2005, 02:07 AM
What Rexxe said is right .I use my UserDAO which extends org.springframework.orm.hibernate.support.Hibernat eDaoSupport and implements org.springframework.orm.hibernate.support.Hibernat eDaoSupport. It does
work for me now:)

Ben Alex
Feb 4th, 2005, 03:29 AM
Yes indeed, you only need to implement AuthenticationDao on whatever data access object takes your fancy.

Another recent thread on how to go about Hibernate integration can be found at http://forum.springframework.org/showthread.php?t=12746.