Commit ab3586ad authored by Martin Parák's avatar Martin Parák
Browse files

Implement Interfaces for services. CLoses #5.

parent 07129edc
package sk.jusska.sfgpetclinic.service;
import java.util.Set;
import sk.jusska.sfgpetclinic.model.Owner;
public interface OwnerService {
Owner findByLastName(String lastName);
Owner findById(Long id);
Owner save(Owner owner);
Set<Owner> findAll();
}
package sk.jusska.sfgpetclinic.service;
import java.util.Set;
import sk.jusska.sfgpetclinic.model.Pet;
public interface PetService {
Pet findById(Long id);
Pet save(Pet owner);
Set<Pet> findAll();
}
package sk.jusska.sfgpetclinic.service;
import java.util.Set;
import sk.jusska.sfgpetclinic.model.Vet;
public interface VetService {
Vet findById(Long id);
Vet save(Vet owner);
Set<Vet> findAll();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment