Package fr.utbm.in56.annonces.dao

Examples of fr.utbm.in56.annonces.dao.MessageDao.save()


        message.setCorps(
            annonce.getPublicateur().getIdentifiant()+ " a accepté de vous " +
            offre + " le bien stipulé dans l'annonce " + annonce.getTitre() +
            ". Bravo !");
       
        msgDao.save(message);
       
        return mapping.findForward("default");

    }
}
View Full Code Here


        m.setCorps(messageForm.getCorps());
        m.setDateEnvoi(Calendar.getInstance());
        m.setMessageAuto(false);
        m.setOuvert(false);

        mDao.save(m);

        session.setAttribute("monmessage", m.getId());

        return mapping.findForward("success");
View Full Code Here

            departements.add(new Departement(regions.get(regions.size() - 1), "Bouches-du-Rhone"));
            departements.add(new Departement(regions.get(regions.size() - 1), "Var"));
            departements.add(new Departement(regions.get(regions.size() - 1), "Vaucluse"));
           
            for(Region region : regions) {
                regionDao.save(region);
            }
           
            for(Departement departement : departements) {
                departementDao.save(departement);
            }
View Full Code Here

        StatutDao statutDao = new StatutDao();
       
        if(statutDao.getAll().isEmpty()) {
            statutDao.save(new Statut("EN_COURS", "Annonce en cours"));
            statutDao.save(new Statut("ANNULEE", "Annonce annulée"));
            statutDao.save(new Statut("TERMINEE", "Annonce terminée"));
        }
    }
   
    private void initRegionsDepartements() {
       
View Full Code Here

    private void initStatuts() {
       
        StatutDao statutDao = new StatutDao();
       
        if(statutDao.getAll().isEmpty()) {
            statutDao.save(new Statut("EN_COURS", "Annonce en cours"));
            statutDao.save(new Statut("ANNULEE", "Annonce annulée"));
            statutDao.save(new Statut("TERMINEE", "Annonce terminée"));
        }
    }
   
View Full Code Here

       
        StatutDao statutDao = new StatutDao();
       
        if(statutDao.getAll().isEmpty()) {
            statutDao.save(new Statut("EN_COURS", "Annonce en cours"));
            statutDao.save(new Statut("ANNULEE", "Annonce annulée"));
            statutDao.save(new Statut("TERMINEE", "Annonce terminée"));
        }
    }
   
    private void initRegionsDepartements() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.