<commit_before>package de.techdev.trackr.domain.employee.vacation;

import de.techdev.trackr.domain.common.FederalState;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.Date;
import java.util.List;

/**
 * @author <NAME>
 */
@RepositoryRestResource(exported = false)
public interface HolidayRepository extends CrudRepository<Holiday, Long> {

    List<Holiday> findByFederalStateAndDayBetween(FederalState federalState, Date start, Date end);

}<commit_msg>TRACKR-121 - Worktime calendar increment should ignore holidays Timesheet now resolves the holidays for the current year (+ 1 month) and uses them.<commit_after>package de.techdev.trackr.domain.employee.vacation;

import de.techdev.trackr.domain.common.FederalState;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.Date;
import java.util.List;

/**
 * @author <NAME>
 */
public interface HolidayRepository extends CrudRepository<Holiday, Long> {

    List<Holiday> findByFederalStateAndDayBetween(@Param("state") FederalState federalState, @Param("start") Date start, @Param("end") Date end);

}
{'fraction_non_alphanumeric': 0.1053030303030303, 'fraction_numerical': 0.0030303030303030303, 'mean_word_length': 6.548571428571429, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5147459', 'n_tokens_mistral': 384, 'n_tokens_neox': 364, 'n_words': 81}