allow mongo implementation of IDeleteExpungeSvc (#4352)

This commit is contained in:
JasonRoberts-smile 2022-12-09 13:23:46 -05:00 committed by GitHub
parent c6733b1111
commit 9c388279a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Transactional(propagation = Propagation.MANDATORY) @Transactional(propagation = Propagation.MANDATORY)
public class DeleteExpungeSvcImpl implements IDeleteExpungeSvc { public class DeleteExpungeSvcImpl implements IDeleteExpungeSvc<JpaPid> {
private static final Logger ourLog = LoggerFactory.getLogger(DeleteExpungeSvcImpl.class); private static final Logger ourLog = LoggerFactory.getLogger(DeleteExpungeSvcImpl.class);
private final EntityManager myEntityManager; private final EntityManager myEntityManager;

View File

@ -21,13 +21,14 @@ package ca.uhn.fhir.jpa.api.svc;
*/ */
import ca.uhn.fhir.jpa.model.dao.JpaPid; import ca.uhn.fhir.jpa.model.dao.JpaPid;
import ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.List; import java.util.List;
@Transactional(propagation = Propagation.MANDATORY) @Transactional(propagation = Propagation.MANDATORY)
public interface IDeleteExpungeSvc { public interface IDeleteExpungeSvc<T extends IResourcePersistentId<?>> {
void deleteExpunge(List<JpaPid> thePersistentIds); void deleteExpunge(List<T> thePersistentIds);
} }