171819202122232425
public class ShipperService implements RepositoryService<Shipper> { @Override public Shipper store(Shipper shipper) { ShipperDAO repository = new ShipperDAO(); return repository.save(shipper); }
252627282930313233
} @Override public void remove(Shipper shipper) { ShipperDAO repository = new ShipperDAO(); repository.delete(shipper); }
333435363738394041
} @Override public Collection<Shipper> getAll() { ShipperDAO repository = new ShipperDAO(); return repository.getAll(); }
4041424344454647
} @Override public Shipper getById(Serializable id) { ShipperDAO repository = new ShipperDAO(); return repository.get(id); }