package com.example.demo.department.repository;

import java.util.Optional;

import org.springframework.data.repository.CrudRepository;

import com.example.demo.department.model.DepartmentEntity;

public interface DepartmentRepository extends CrudRepository<DepartmentEntity, Long> {
    Optional<DepartmentEntity> findByNameIgnoreCase(String name);
}
