Package urun.pojos

Examples of urun.pojos.Renk


  public static void fillDatabaseWithColor() {
    Color ilkRenk = new Color(0, 0, 0);
    List<?> renkListesi = HibernateManager.getInstance().get(Renk.class);
    if (renkListesi.size() <= 0) {
      Renk renk = new Renk();
      int x = KNOWNCOLORS.size();
      for (int i = 0; i < x; i++) {
        String enYakinDeger = getBestColorName(ilkRenk);
        ilkRenk = KNOWNCOLORS.get(enYakinDeger);
        renk.setName(enYakinDeger.toUpperCase());
        renk.setColor(ilkRenk);
        KNOWNCOLORS.remove(enYakinDeger);
        HibernateManager.getInstance().save(renk);

      }
    }
View Full Code Here

TOP

Related Classes of urun.pojos.Renk

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.