public class DepartmentDAOImpl extends HibernateDaoSupport implements
DepartmentDAO {
@Override
public Department createDepartment(String name, int parent) {
Department department = new Department(name, parent);
return (Department) getHibernateTemplate().save(department);
}