Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.websystique.springboot.service;
- import java.util.Collection;
- import org.springframework.stereotype.Service;
- import com.websystique.springboot.model.AnimalEntity;
- @Service
- public interface AnimalEntityService {
- AnimalEntity findById(long id);
- // AnimalEntity findByName(String name);
- //
- // AnimalEntity findByHabitat(String habitat);
- void saveAnimal(AnimalEntity animal);
- void updateAnimal(AnimalEntity animal);
- void deleteAnimalById(long id);
- Collection<AnimalEntity> findAllAnimals();
- void deleteAllAnimals();
- boolean isAnimalExist(AnimalEntity animal);
- }
Add Comment
Please, Sign In to add comment