1819202122232425
RepositoryService<ProductsInWishList> { @Override public ProductsInWishList store(ProductsInWishList productsInWishList) { ProductsInWishListDAO repository = new ProductsInWishListDAO(); return repository.save(productsInWishList); }
252627282930313233
} @Override public void remove(ProductsInWishList productsInWishList) { ProductsInWishListDAO repository = new ProductsInWishListDAO(); repository.delete(productsInWishList); }
3334353637383940
} @Override public Collection<ProductsInWishList> getAll() { ProductsInWishListDAO repository = new ProductsInWishListDAO(); return repository.getAll(); }
3940414243444546
return repository.getAll(); } @Override public ProductsInWishList getById(Serializable id) { ProductsInWishListDAO repository = new ProductsInWishListDAO(); return repository.get(id); }