1718192021222324
public class ReviewService implements RepositoryService<Review> { @Override public Review store(Review review) { ReviewDAO repository = new ReviewDAO(); return repository.save(review); }
242526272829303132
} @Override public void remove(Review review) { ReviewDAO repository = new ReviewDAO(); repository.delete(review); }
3233343536373839
} @Override public Collection<Review> getAll() { ReviewDAO repository = new ReviewDAO(); return repository.getAll(); }
3839404142434445
return repository.getAll(); } @Override public Review getById(Serializable id) { ReviewDAO repository = new ReviewDAO(); return repository.get(id); }