Package org.openbravo.model.common.geography

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


    final OBCriteria<City> obc = OBDal.getInstance().createCriteria(City.class);
    for (final City c : obc.list()) {
      OBDal.getInstance().remove(c);
    }

    final City city = OBProvider.getInstance().get(City.class);
    city.setAreaCode("3941");
    city.setCoordinates("00");
    city.setCoordinates("lo");
    city.setPostalCode("postal");
    city.setName("name");
    city.setCountry(getOneInstance(Country.class));
    city.setRegion(getOneInstance(Region.class));
    OBDal.getInstance().save(city);
    commitTransaction();
    cityId = city.getId();
  }
View Full Code Here

TOP

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

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.