All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.appfuse.dao.hibernate.LookupDaoHibernate Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package org.appfuse.dao.hibernate;

import java.util.List;

import org.appfuse.dao.LookupDao;
import org.appfuse.model.Role;

/**
 * Hibernate implementation of LookupDao.
 *
 * @author Matt Raible
 */
public class LookupDaoHibernate extends UniversalDaoHibernate implements LookupDao {

    /**
     * @see org.appfuse.dao.LookupDao#getRoles()
     */
    public List getRoles() {
        log.debug("retrieving all role names...");

        return getHibernateTemplate().find("from Role order by name");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy