package org.synyx.urlaubsverwaltung.absence;

import org.springframework.data.repository.CrudRepository;


public interface AbsenceMappingDAO extends CrudRepository<AbsenceMapping, Integer> {

    AbsenceMapping findAbsenceMappingByAbsenceIdAndAbsenceType(Integer id, AbsenceType absenceType);
}

package org.synyx.urlaubsverwaltung.absence;

import org.springframework.data.repository.CrudRepository;


interface AbsenceMappingDAO extends CrudRepository<AbsenceMapping, Integer> {

    AbsenceMapping findAbsenceMappingByAbsenceIdAndAbsenceType(Integer id, AbsenceType absenceType);
}

Reduce scope of absence mapping dao
Reduce scope of absence mapping dao
