예제 #1
0
 @Override
 public Paper merge(Paper entity) {
   if (entity.getId() != null) {
     return repo.save(entity);
   }
   return null;
 }
예제 #2
0
 @Override
 public List<Paper> findAll() {
   return repo.findAll();
 }
예제 #3
0
 @Override
 public void remove(Paper entity) {
   repo.delete(entity);
 }
예제 #4
0
 @Override
 public Paper persist(Paper entity) {
   return repo.save(entity);
 }
예제 #5
0
 @Override
 public Paper find(Long id) {
   return repo.findOne(id);
 }