student-30864-patch-1 #11
@@ -1,10 +1,13 @@
|
|||||||
package com.example.nto.service;
|
package com.example.nto.service;
|
||||||
|
|
||||||
/**
|
import com.example.nto.entity.Employee;
|
||||||
* TODO: ДОРАБОТАТЬ в рамках задания
|
|
||||||
* =================================
|
import java.util.Optional;
|
||||||
* МОЖНО: Добавлять методы, аннотации, зависимости
|
|
||||||
* НЕЛЬЗЯ: Изменять название класса и пакета
|
|
||||||
*/
|
|
||||||
public interface EmployeeService {
|
public interface EmployeeService {
|
||||||
|
|
||||||
|
boolean existsByCode(String code);
|
||||||
|
|
||||||
|
Optional<Employee> findByCode(String code);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user