package com.sikey.wa04.business.infrastructure.repository;

import com.sikey.wa04.business.infrastructure.dto.model.ChildAlarmClockModel;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
public interface ChildAlarmClockRepository extends JpaRepository<ChildAlarmClockModel, Long> {
    List<ChildAlarmClockModel> findByChildId(@Size(max = 36) @NotNull String childId);

    void deleteByChildIdIn(List<String> childIds);
}
