Package org.bat.client.persistence

Examples of org.bat.client.persistence.PlayerHibernateDAO


      if (activeSession != null) {
        printMerchantWarning("Merchant session active for customer "+activeSession.getCustomer().getName()+". Please end this session first.");
      } else {
        Session session = HibernateUtil.getSessionFactory().openSession();
       
        PlayerHibernateDAO myDAO = new PlayerHibernateDAO();
        myDAO.setSession(session);
        Transaction tx = session.beginTransaction();
        Player myCustomer = myDAO.getPlayerByName(newCustomer);
        tx.commit();
        if (myCustomer == null) {
          myHandler.debugInfo("New player: "+newCustomer);
          tx = session.beginTransaction();
          myCustomer = new Player();
View Full Code Here

TOP

Related Classes of org.bat.client.persistence.PlayerHibernateDAO

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.