Howdey,

This is a Newbie question about Spring access, I get an error when trying to access an entity object to load it from the db using a finder.

I get the following error:
java.lang.IllegalArgumentException: No SessionFactory specified

I guess that I should create a session before calling the finder (or is this done by the Dao ?), can I find a session factory somewhere in the AndroMda framework ?

===================================
This is my code:
protected java.lang.String handleValidateLogin(java.lang.String username, java.lang.String password)
throws java.lang.Exception
{
Account acc;
AccountDao accountDb = this.getAccountDao();
Collection accounts = accountDb.findAccountWithUsername( username );
if ( accounts != null )
{
Iterator i = accounts.iterator();
if ( i.hasNext() )
{
acc = (Account)i.next();
if ( acc.getPassword().compareTo( password ) == 0 )
{
return "Ok";
}
}
}
return "Fail";
}



Thanks for any help :)

// Mikael



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to