@Override public ProductsInCart getById(Serializable id) { ProductsInCartDAO repository = new ProductsInCartDAO(); return repository.get(id); }
@Override public void remove(ProductsInCart productsInCart) { ProductsInCartDAO repository = new ProductsInCartDAO(); repository.delete(productsInCart); }
@Override public Collection<ProductsInCart> getAll() { ProductsInCartDAO repository = new ProductsInCartDAO(); return repository.getAll(); }
@Override public ProductsInCart store(ProductsInCart productsInCart) { ProductsInCartDAO repository = new ProductsInCartDAO(); return repository.save(productsInCart); }