@@ -0,0 +1,1797 @@
+package devopsdistilled.operp.server.data.service.impl;%0A%0Aimport java.io.Serializable;%0Aimport java.util.List;%0A%0Aimport org.springframework.data.domain.Page;%0Aimport org.springframework.data.domain.Pageable;%0Aimport org.springframework.data.domain.Sort;%0Aimport org.springframework.data.jpa.repository.JpaRepository;%0A%0Apublic class AbstractServiceImpl%3CT%3E implements JpaRepository%3CT, Serializable%3E %7B%0A%0A%09protected JpaRepository%3CT, Serializable%3E repo;%0A%0A%09@Override%0A%09public Page%3CT%3E findAll(Pageable pageable) %7B%0A%0A%09%09return repo.findAll(pageable);%0A%09%7D%0A%0A%09@Override%0A%09public %3CS extends T%3E S save(S entity) %7B%0A%09%09return repo.save(entity);%0A%09%7D%0A%0A%09@Override%0A%09public T findOne(Serializable id) %7B%0A%09%09return repo.findOne(id);%0A%09%7D%0A%0A%09@Override%0A%09public boolean exists(Serializable id) %7B%0A%09%09return exists(id);%0A%09%7D%0A%0A%09@Override%0A%09public Iterable%3CT%3E findAll(Iterable%3CSerializable%3E ids) %7B%0A%09%09return findAll(ids);%0A%09%7D%0A%0A%09@Override%0A%09public long count() %7B%0A%09%09return repo.count();%0A%09%7D%0A%0A%09@Override%0A%09public void delete(Serializable id) %7B%0A%09%09repo.delete(id);%0A%09%7D%0A%0A%09@Override%0A%09public void delete(T entity) %7B%0A%09%09repo.delete(entity);%0A%09%7D%0A%0A%09@Override%0A%09public void delete(Iterable%3C? extends T%3E entities) %7B%0A%09%09repo.delete(entities);%0A%09%7D%0A%0A%09@Override%0A%09public void deleteAll() %7B%0A%09%09repo.deleteAll();%0A%09%7D%0A%0A%09@Override%0A%09public List%3CT%3E findAll() %7B%0A%09%09return repo.findAll();%0A%09%7D%0A%0A%09@Override%0A%09public List%3CT%3E findAll(Sort sort) %7B%0A%09%09return repo.findAll(sort);%0A%09%7D%0A%0A%09@Override%0A%09public %3CS extends T%3E List%3CS%3E save(Iterable%3CS%3E entities) %7B%0A%09%09return repo.save(entities);%0A%09%7D%0A%0A%09@Override%0A%09public void flush() %7B%0A%09%09repo.flush();%0A%09%7D%0A%0A%09@Override%0A%09public T saveAndFlush(T entity) %7B%0A%09%09return saveAndFlush(entity);%0A%09%7D%0A%0A%09@Override%0A%09public void deleteInBatch(Iterable%3CT%3E entities) %7B%0A%09%09repo.deleteInBatch(entities);%0A%09%7D%0A%0A%09@Override%0A%09public void deleteAllInBatch() %7B%0A%09%09repo.deleteAllInBatch();%0A%09%7D%0A%0A%7D%0A

Create AbstractServiceImpl to be extended by Service classes