
001package ca.uhn.fhir.jpa.dao.data; 002 003import ca.uhn.fhir.jpa.model.entity.ResourceHistoryProvenanceEntity; 004import ca.uhn.fhir.jpa.model.entity.ResourceTable; 005import org.springframework.data.domain.Pageable; 006import org.springframework.data.domain.Slice; 007import org.springframework.data.jpa.repository.JpaRepository; 008import org.springframework.data.jpa.repository.Modifying; 009import org.springframework.data.jpa.repository.Query; 010import org.springframework.data.repository.query.Param; 011 012import java.util.Date; 013import java.util.List; 014import java.util.Map; 015 016/* 017 * #%L 018 * HAPI FHIR JPA Server 019 * %% 020 * Copyright (C) 2014 - 2022 Smile CDR, Inc. 021 * %% 022 * Licensed under the Apache License, Version 2.0 (the "License"); 023 * you may not use this file except in compliance with the License. 024 * You may obtain a copy of the License at 025 * 026 * http://www.apache.org/licenses/LICENSE-2.0 027 * 028 * Unless required by applicable law or agreed to in writing, software 029 * distributed under the License is distributed on an "AS IS" BASIS, 030 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 031 * See the License for the specific language governing permissions and 032 * limitations under the License. 033 * #L% 034 */ 035 036public interface IResourceProvenanceDao extends JpaRepository<ResourceHistoryProvenanceEntity, Long>, IHapiFhirJpaRepository { 037 038 @Modifying 039 @Query("DELETE FROM ResourceHistoryProvenanceEntity t WHERE t.myId = :pid") 040 void deleteByPid(@Param("pid") Long theId); 041 042}