Package com.ledruide.druidecave.init.data

Source Code of com.ledruide.druidecave.init.data.InitRecoltants

/**
* Copyright (C) 2007 Julien Revault d'Allonnes
*
* This file is part of DruideCave.
*
* DruideCave is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* DruideCave is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DruideCave; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
package com.ledruide.druidecave.init.data;

import com.ledruide.druidecave.dao.Vigneron;

/**
* This
*/
public class InitRecoltants {

    public static void main(String[] args) {
        InitRecoltants.start();
    }

    /**
     * Permet d'ajouter les plats
     */
    public static void start() {
        try {
            Vigneron vigneron = new Vigneron();
            vigneron.setFirstname("Chapoutier");
            vigneron.setLastname("M.");
            vigneron.setAddress("18, avenue Paul Durand");
            vigneron.setCp("26601");
            vigneron.setTown("Tain");
            vigneron.setCountry_id("fr");
            vigneron.setWeb("http://www.chapoutier.com");
            vigneron.setEmail("chapoutier@chapoutier.com");
            vigneron.setTel("+ 33 (0) 475 089 261");
            vigneron.setFax("+ 33 (0) 475 089 636");
            vigneron.setNote("9");
            vigneron.save();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }

}
TOP

Related Classes of com.ledruide.druidecave.init.data.InitRecoltants

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.