I believe it does not work if you extend the class itself, due to how the
internal MappingSqlQuery classes that implement those queries set/reference
themselves.  Seems like the default strings get applied via constructor
before the setter methods are called via spring.   

I am not 100% on this. It was a while ago, and I may have done something
incorrectly. This kind of pertains to my earlier email about how I found it
difficult to extend JdbcDaoImpl (and the extended Dao as well), in a clean
fashion.  If I have some time tomorrow, I can try to investigate this and
report with more conclusive results.

-tim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ben Alex
Sent: Monday, August 22, 2005 6:11 PM
To: acegisecurity-developer@lists.sourceforge.net
Subject: Re: [Acegisecurity-developer] Blog entry on how to extend
JdbcDaoImpl

Pascal Gehl wrote:

>Hi,
>
>I've written a blog entry on how to extend JdbcDaoImpl.
>I would appreciate guru's to check if I don't misunderstood it.
>
>http://www.jroller.com/page/paskos?entry=acegi_using_a_custom_select
>  
>
Hi Pascal

You should have been able to use setAuthoritiesByUsernameQuery(String) 
and setUsersByUsernameQuery(String) on JdbcDaoImpl. Did that not work?

Cheers
Ben


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to