diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java index c1605a90183..16ff7b45fb6 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java @@ -586,7 +586,7 @@ public abstract class BaseHapiFhirResourceDao extends B throw new MethodNotAllowedException("_expunge is not enabled on this server: " + getConfig().cannotDeleteExpungeReason()); } - if (theUrl.contains(JpaConstants.PARAM_DELETE_CASACADE) || theRequest.getHeader("X-Cascade").equals("delete")) { + if (theUrl.contains(JpaConstants.PARAM_DELETE_CASCADE) || theRequest.getHeader("X-Cascade").equals("delete")) { throw new NotImplementedOperationException("_expunge cannot be used with _cascade"); } diff --git a/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/util/JpaConstants.java b/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/util/JpaConstants.java index c3a1f35722e..845c6d0d8c1 100644 --- a/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/util/JpaConstants.java +++ b/hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/util/JpaConstants.java @@ -204,7 +204,7 @@ public class JpaConstants { * Parameter for delete to indicate the resource should be cascading delete */ - public static final String PARAM_DELETE_CASACADE = "_cascade"; + public static final String PARAM_DELETE_CASCADE = "_cascade"; /** * URL for extension on a SearchParameter indicating that text values should not be indexed