-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2123a2a
commit 8658603
Showing
10 changed files
with
173 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/com/production/ehayvanbackendapi/Services/AppointmentService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.Appointment; | ||
import com.production.ehayvanbackendapi.Repositories.AppointmentRepository; | ||
|
||
import java.util.List; | ||
|
||
public class AppointmentService { | ||
private final AppointmentRepository appointmentRepository; | ||
|
||
public AppointmentService(AppointmentRepository appointmentRepository) { | ||
this.appointmentRepository = appointmentRepository; | ||
} | ||
public List<Appointment> getAllAppointments(){ | ||
return appointmentRepository.findAll(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/production/ehayvanbackendapi/Services/CustomerService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.Customer; | ||
import com.production.ehayvanbackendapi.Repositories.CustomerRepository; | ||
|
||
import java.util.List; | ||
|
||
public class CustomerService { | ||
private final CustomerRepository customerRepository; | ||
|
||
public CustomerService(CustomerRepository customerRepository) { | ||
this.customerRepository = customerRepository; | ||
} | ||
public List<Customer> getAllCustomers(){ | ||
return customerRepository.findAll(); | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/production/ehayvanbackendapi/Services/MedTypeService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.MedType; | ||
import com.production.ehayvanbackendapi.Repositories.MedTypeRepository; | ||
import com.production.ehayvanbackendapi.Repositories.MedicationRepository; | ||
|
||
import java.util.List; | ||
|
||
public class MedTypeService { | ||
private final MedTypeRepository medTypeRepository; | ||
|
||
public MedTypeService(MedTypeRepository medTypeRepository) { | ||
this.medTypeRepository = medTypeRepository; | ||
} | ||
public List<MedType> getAllMedTypes(){ | ||
return medTypeRepository.findAll(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/production/ehayvanbackendapi/Services/MedicationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.Medication; | ||
import com.production.ehayvanbackendapi.Repositories.MedicationRepository; | ||
|
||
import java.util.List; | ||
|
||
public class MedicationService { | ||
private final MedicationRepository medicationRepository; | ||
|
||
public MedicationService(MedicationRepository medicationRepository) { | ||
this.medicationRepository = medicationRepository; | ||
} | ||
public List<Medication> getAllMedications(){ | ||
return medicationRepository.findAll(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/production/ehayvanbackendapi/Services/PetOwnerService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.PetOwner; | ||
import com.production.ehayvanbackendapi.Repositories.PetOwnerRepository; | ||
|
||
import java.util.List; | ||
|
||
public class PetOwnerService { | ||
private final PetOwnerRepository petOwnerRepository; | ||
|
||
public PetOwnerService(PetOwnerRepository petOwnerRepository) { | ||
this.petOwnerRepository = petOwnerRepository; | ||
} | ||
public List<PetOwner> getAllPetOwners(){ | ||
return petOwnerRepository.findAll(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/production/ehayvanbackendapi/Services/PetService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.Pet; | ||
import com.production.ehayvanbackendapi.Repositories.PetRepository; | ||
|
||
import java.util.List; | ||
|
||
public class PetService { | ||
private final PetRepository petRepository; | ||
|
||
public PetService(PetRepository petRepository) { | ||
this.petRepository = petRepository; | ||
} | ||
public List<Pet> getAllPets(){ | ||
return petRepository.findAll(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/production/ehayvanbackendapi/Services/PetTypeService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.PetType; | ||
import com.production.ehayvanbackendapi.Repositories.PetTypeRepository; | ||
|
||
import java.util.List; | ||
|
||
public class PetTypeService { | ||
private final PetTypeRepository petTypeRepository; | ||
|
||
public PetTypeService(PetTypeRepository petTypeRepository) { | ||
this.petTypeRepository = petTypeRepository; | ||
} | ||
public List<PetType> getAllPetTypes(){ | ||
return petTypeRepository.findAll(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/production/ehayvanbackendapi/Services/ScheduleService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.Schedule; | ||
import com.production.ehayvanbackendapi.Repositories.ScheduleRepository; | ||
|
||
import java.util.List; | ||
|
||
public class ScheduleService { | ||
private final ScheduleRepository scheduleRepository; | ||
|
||
public ScheduleService(ScheduleRepository scheduleRepository) { | ||
this.scheduleRepository = scheduleRepository; | ||
} | ||
public List<Schedule> getAllSchedules(){ | ||
return scheduleRepository.findAll(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/production/ehayvanbackendapi/Services/UserTypeService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.UserType; | ||
import com.production.ehayvanbackendapi.Repositories.UserTypeRepository; | ||
|
||
import java.util.List; | ||
|
||
public class UserTypeService { | ||
private final UserTypeRepository userTypeRepository; | ||
|
||
public UserTypeService(UserTypeRepository userTypeRepository) { | ||
this.userTypeRepository = userTypeRepository; | ||
} | ||
public List<UserType> getAllUserTypes(){ | ||
return userTypeRepository.findAll(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/production/ehayvanbackendapi/Services/VeterinarianService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.production.ehayvanbackendapi.Services; | ||
|
||
import com.production.ehayvanbackendapi.Entities.Veterinarian; | ||
import com.production.ehayvanbackendapi.Repositories.VeterinarianRepository; | ||
|
||
import java.util.List; | ||
|
||
public class VeterinarianService { | ||
private final VeterinarianRepository veterinarianRepository; | ||
|
||
public VeterinarianService(VeterinarianRepository veterinarianRepository) { | ||
this.veterinarianRepository = veterinarianRepository; | ||
} | ||
|
||
public List<Veterinarian> getAllVeterinarians(){ | ||
return veterinarianRepository.findAll(); | ||
} | ||
} |