Package reserv.entity

Examples of reserv.entity.Seance


        return placesList;
    }
   
    public String getInfo(){
       
        Seance s = this.getSeance(seanceId);
        String txt = "";
        if(s != null){
            txt = "Rezerwacja dla" + s.getMovie().getName()+", data: "+s.getSeanceDate("yyyy-MM-dd HH:mm");
        }
       
        return txt;
    }
View Full Code Here


    }
   
    public Seance getSeance(Integer seance_id){
        EntityManager em = DBManager.getManager().createEntityManager();
        List<Seance> s = em.createNamedQuery("Seance.findById").setParameter("id", seanceId).getResultList();
        Seance s2 = null;
        if (!s.isEmpty())
            s2 = s.get(0);
        return s2;
    }
View Full Code Here


            reservation.setPlace(Integer.parseInt(placeNumber));
            UUID token = UUID.randomUUID();
            reservation.setToken(token.toString());
            Seance s = this.getSeance(seanceId);

            reservation.setSeance(s);
            System.out.print(placeNumber);
            em.persist(reservation);
            em.getTransaction().commit();   
View Full Code Here

                     
            em.persist(seance);
            em.getTransaction().commit();   
            em.close();

            this.seance = new Seance();
            PixTomMessages.addFlash("Seans został dodany pomyślnie.");
           
          
        }
        catch(javax.validation.ConstraintViolationException e)
View Full Code Here

TOP

Related Classes of reserv.entity.Seance

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.