package com.magistr.app.repository;

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

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

public interface AcademicCalendarActivityTypeRepository extends JpaRepository<AcademicCalendarActivityType, Long> {

    List<AcademicCalendarActivityType> findAllByOrderByDisplayOrderAscCodeAsc();

    Optional<AcademicCalendarActivityType> findByCode(String code);
}
