Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Parák
sfg-pet-clinic
Commits
ab3586ad
Commit
ab3586ad
authored
Apr 01, 2020
by
Martin Parák
Browse files
Implement Interfaces for services. CLoses
#5
.
parent
07129edc
Changes
3
Hide whitespace changes
Inline
Side-by-side
pet-clinic-data/src/main/java/sk/jusska/sfgpetclinic/service/OwnerService.java
0 → 100644
View file @
ab3586ad
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
();
}
pet-clinic-data/src/main/java/sk/jusska/sfgpetclinic/service/PetService.java
0 → 100644
View file @
ab3586ad
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
();
}
pet-clinic-data/src/main/java/sk/jusska/sfgpetclinic/service/VetService.java
0 → 100644
View file @
ab3586ad
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
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment