Package projetAppliWeb.modeles

Examples of projetAppliWeb.modeles.Commande


         @PersistenceContext
     private EntityManager em;


        public  void createCommande(Timestamp dateCommande, double totalCommande, Collection<LigneCommande> listeligneCommande, Utilisateur client){
            Commande commande=new Commande(dateCommande, totalCommande, listeligneCommande, client);
            em.persist(commande);

        }
View Full Code Here


         Query q = em.createQuery("select c from Commande c");
         return q.getResultList();
     }

     public Commande getCommandeById(int id) {
        Commande commande=em.find(Commande.class, id);
        return commande;
     }
View Full Code Here

       return q.getResultList();
     }


          public void deleteCommandebyId(int id){
              Commande commande=getCommandeById(id);
              em.remove(commande);
          }
View Full Code Here

TOP

Related Classes of projetAppliWeb.modeles.Commande

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.