package com.ecep.contract.ds.project.repository;

import java.util.Optional;

import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.model.ProjectType;

@Repository
public interface ProjectTypeRepository extends MyRepository<ProjectType, Integer> {

    Optional<ProjectType> findByName(String name);

    Optional<ProjectType> findByCode(String code);
}
