Add property for multitenancy

This commit is contained in:
jamesagnew
2020-06-15 17:54:11 -04:00
parent 0430a539ff
commit 1badb96db8
5 changed files with 169 additions and 1 deletions

View File

@@ -135,7 +135,14 @@ public class FhirServerConfigCommon {
@Bean
public PartitionSettings partitionSettings() {
return new PartitionSettings();
PartitionSettings retVal = new PartitionSettings();
// Partitioning
if (HapiProperties.getPartitioningMultitenancyEnabled()) {
retVal.setPartitioningEnabled(true);
}
return retVal;
}