package com.magistr.app.repository;

import com.magistr.app.model.EducationForm;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface EducationFormRepository extends JpaRepository<EducationForm, Long> {

    Optional<EducationForm> findByName(String name);

    List<EducationForm> findAllByOrderByNameAsc();
}
