libdo

Untitled

Nov 5th, 2017
12,953
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.websystique.springboot.service;
  2.  
  3.  
  4. import java.util.Collection;
  5.  
  6. import org.springframework.stereotype.Service;
  7.  
  8. import com.websystique.springboot.model.AnimalEntity;
  9. @Service
  10. public interface AnimalEntityService {
  11.  
  12. AnimalEntity findById(long id);
  13.  
  14. // AnimalEntity findByName(String name);
  15. //
  16. // AnimalEntity findByHabitat(String habitat);
  17.  
  18. void saveAnimal(AnimalEntity animal);
  19.  
  20. void updateAnimal(AnimalEntity animal);
  21.  
  22. void deleteAnimalById(long id);
  23.  
  24. Collection<AnimalEntity> findAllAnimals();
  25.  
  26. void deleteAllAnimals();
  27.  
  28. boolean isAnimalExist(AnimalEntity animal);
  29.  
  30.  
  31. }
Add Comment
Please, Sign In to add comment