Package org.openbravo.model.common.geography

Examples of org.openbravo.model.common.geography.CountryTrl


    final OBCriteria<Language> languageCriteria = OBDal.getInstance()
        .createCriteria(Language.class);
    final List<Language> languages = languageCriteria.list();
    int created = 0;
    for (final Language l : languages) {
      final CountryTrl countryTrl = OBProvider.getInstance().get(CountryTrl.class);
      countryTrl.setCountry(country);
      countryTrl.setLanguage(l);
      countryTrl.setDescription(country.getDescription());
      countryTrl.setName(country.getName());
      countryTrl.setRegionName(country.getRegionName());
      countryTrl.setAddressPrintFormat("test");
      countryTrl.setActive(true);
      // countryTrl.setDescription(getName())isplaySequence(country.getDisplaySequence());
      OBDal.getInstance().save(countryTrl);
      created++;
    }
    log.debug("Created " + created + " countrytrl objects");
View Full Code Here

TOP

Related Classes of org.openbravo.model.common.geography.CountryTrl

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.