Package dao

Examples of dao.AdminDAOImpl


            EntityManagerFactory emf = Persistence.createEntityManagerFactory("SisInfPengambilanCutiPU");
            EntityManager em = emf.createEntityManager();
            Tbladmin loginAdmin = new Tbladmin();
            loginAdmin.setUsername(username);
            loginAdmin.setPassword(password);
            AdminDAO adminDao = new AdminDAOImpl(em);
            if (adminDao.loginAdmin(loginAdmin)) {
                //LOGIN AS ADMIN
                HttpSession session = request.getSession(true);
                session.setAttribute("loginAdmin", "Administrator");
                response.sendRedirect("administrator/home.jsp");
            } else {
View Full Code Here

TOP

Related Classes of dao.AdminDAOImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.