Fargus811 / Competition

0 stars 0 forks source link

CoachRepository and SportsmanRepository #9

Open VladOsipov opened 4 years ago

VladOsipov commented 4 years ago

Boths repository interfaces look very similar

void save(Coach coach); List<Coach> findAll(); List<Coach> findCoachByAge(int age); Coach findById(int id);

void save(Sportsman sportsman); List<Sportsman> findAll(); List<Sportsman> findSportsManByAge(int age); Sportsman findById(int id);

Please think what we can do with it

Fargus811 commented 4 years ago

Create interface , that’s unifies our repository’s actions ?

VladOsipov commented 4 years ago

Good idea!

VladOsipov commented 4 years ago

Also think about abstract class