diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java index 22e67de435f..08a66c15be1 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java @@ -1087,7 +1087,7 @@ public abstract class BaseHapiFhirDao implements IDao { b.append(" (pid "); b.append(theEntity.getId()); b.append(", version "); - b.append(myContext.getVersion().getVersion()); + b.append(theEntity.getFhirVersion().name()); b.append("): "); b.append(e.getMessage()); String msg = b.toString(); diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java index c1770e5cb03..051ee0bdeb7 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirSystemDao.java @@ -21,12 +21,7 @@ import static org.apache.commons.lang3.StringUtils.isBlank; * limitations under the License. * #L% */ - -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; +import java.util.*; import java.util.concurrent.locks.ReentrantLock; import javax.persistence.Query; @@ -59,7 +54,6 @@ import ca.uhn.fhir.rest.method.RequestDetails; import ca.uhn.fhir.rest.server.IBundleProvider; import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException; import ca.uhn.fhir.rest.server.interceptor.IServerInterceptor.ActionRequestDetails; -import ca.uhn.fhir.rest.server.servlet.ServletRequestDetails; public abstract class BaseHapiFhirSystemDao extends BaseHapiFhirDao implements IFhirSystemDao { @@ -278,9 +272,9 @@ public abstract class BaseHapiFhirSystemDao extends BaseHapiFhirDao * The bundle type + * @param + * The Meta datatype type */ public interface IFhirSystemDao extends IDao { /** * Use with caution! This deletes everything!! - * @param theRequestDetails TODO + * + * @param theRequestDetails + * TODO */ void deleteAllTagsOnServer(RequestDetails theRequestDetails); @@ -58,11 +62,13 @@ public interface IFhirSystemDao extends IDao { /** * Not supported for DSTU1 - * @param theRequestDetails TODO + * + * @param theRequestDetails + * TODO */ MT metaGetOperation(RequestDetails theRequestDetails); - int performReindexingPass(Integer theCount); + Integer performReindexingPass(Integer theCount); T transaction(RequestDetails theRequestDetails, T theResources); diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSearchParameterDstu3.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSearchParameterDstu3.java index 5432daf5206..344fa4b83c1 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSearchParameterDstu3.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSearchParameterDstu3.java @@ -73,8 +73,8 @@ public class FhirResourceDaoSearchParameterDstu3 extends FhirResourceDaoDstu3