package com.jodgi.dao;
import java.util.List;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;
import com.jodgi.vo.UserVO;
public class UserDAOHibernate implements UserDAO {
private HibernateTemplate hibernateTemplate;
public void setSessionFactory(SessionFactory sessionFactory) {
this.hibernateTemplate = new HibernateTemplate(sessionFactory);
}
@SuppressWarnings("unchecked")
public List<UserVO> getAll() {
return this.hibernateTemplate.find("from UserVO");
}
}