171819202122232425
public class ShippingCodeService implements RepositoryService<ShippingCode> { @Override public ShippingCode store(ShippingCode shippingCode) { ShippingCodeDAO repository = new ShippingCodeDAO(); return repository.save(shippingCode); }
252627282930313233
} @Override public void remove(ShippingCode shippingCode) { ShippingCodeDAO repository = new ShippingCodeDAO(); repository.delete(shippingCode); }
3334353637383940
} @Override public Collection<ShippingCode> getAll() { ShippingCodeDAO repository = new ShippingCodeDAO(); return repository.getAll(); }
3940414243444546
return repository.getAll(); } @Override public ShippingCode getById(Serializable id) { ShippingCodeDAO repository = new ShippingCodeDAO(); return repository.get(id); }