/** * Get a station to put in the database * * @param id for the station * @param warehouse for the station * @return station */ public Station getStation(int id, Warehouse warehouse) { Station station = new Station(); station.setStationID(id); station.setWarehouseID(warehouse.getWarehouseID()); station.setName("Station #" + id); station.setAddress(randAddress()); station.setCity(cities.get(randInt(0, cities.size()))); station.setState(states.get(randInt(0, states.size()))); station.setZip(zips.get(randInt(0, zips.size()))); station.setSalesTax(new BigDecimal(randDouble(minSalesTax, maxSalesTax))); station.setTotalSales(new BigDecimal(0)); return station; }