1718192021222324
public class VendorService implements RepositoryService<Vendor> { @Override public Vendor store(Vendor vendor) { VendorDAO repository = new VendorDAO(); return repository.save(vendor); }
2425262728293031
} @Override public void remove(Vendor vendor) { VendorDAO repository = new VendorDAO(); repository.delete(vendor); }
3132333435363738
} @Override public Collection<Vendor> getAll() { VendorDAO repository = new VendorDAO(); return repository.getAll(); }
3738394041424344
return repository.getAll(); } @Override public Vendor getById(Serializable id) { VendorDAO repository = new VendorDAO(); return repository.get(id); }