171819202122232425
public class BrandService implements RepositoryService<Brand> { @Override public Brand store(Brand brand) { BrandDAO repository = new BrandDAO(); return repository.save(brand); }
2526272829303132
} @Override public void remove(Brand brand) { BrandDAO repository = new BrandDAO(); repository.delete(brand); }
323334353637383940
} @Override public Collection<Brand> getAll() { BrandDAO repository = new BrandDAO(); return repository.getAll(); }
3940414243444546
} @Override public Brand getById(Serializable id) { BrandDAO repository = new BrandDAO(); return repository.get(id); }