org.directdemocracyportal.democracy.service.dao.hibernate
Class HibernateUserDAO
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.directdemocracyportal.democracy.service.dao.hibernate.GenericHibernateDAO<User,java.lang.Long>
org.directdemocracyportal.democracy.service.dao.hibernate.HibernateUserDAO
- All Implemented Interfaces:
- GenericDAO<User,java.lang.Long>, UserDAO, org.springframework.beans.factory.InitializingBean
@Transactional(propagation=MANDATORY)
public class HibernateUserDAO
extends GenericHibernateDAO<User,java.lang.Long>
implements UserDAO
The Class HibernateUserDAO.
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateUserDAO
public HibernateUserDAO()
- Instantiates a new hibernate user dao.
findByUsername
@Transactional(readOnly=true)
public User findByUsername(java.lang.String username)
throws org.springframework.dao.DataAccessException
- Description copied from interface:
UserDAO
- Find by username.
- Specified by:
findByUsername
in interface UserDAO
- Parameters:
username
- the username
- Returns:
- the user
- Throws:
org.springframework.dao.DataAccessException
- the data access exception
Copyright © 2004-2010 www.DirectDemocracyPortal.org. All Rights Reserved.