public List getAll() throws SQLException {
        Session session = null;
        List  list = new ArrayList();
        try {
            session = HibernateUtil.getInstance().openSession();
            list = session.createCriteria(EmployeeModel.class).list();
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, e.getMessage());
        } finally {
            if (session != null && session.isOpen()) {
                session.close();
            }
        }
        return list;
    }