diff --git a/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/UserGroupCdcService.java b/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/UserGroupCdcService.java index 11812d1d..a41f7bfa 100644 --- a/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/UserGroupCdcService.java +++ b/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/UserGroupCdcService.java @@ -48,7 +48,7 @@ @ApplicationScoped public class UserGroupCdcService { private static final String OPERATION_NAME = "USER-GROUP-CDC-sendUserGroupEvent"; - private static final String COLLECTION_NAME = "userGroups"; + private static final String COLLECTION_NAME = "UserGroups"; private final TelemetryClient telemetryClient; private final Integer retryMinBackOff; diff --git a/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/entity/UserGroupEntity.java b/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/entity/UserGroupEntity.java index 0565c974..3a13444e 100644 --- a/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/entity/UserGroupEntity.java +++ b/apps/user-group-cdc/src/main/java/it/pagopa/selfcare/user/event/entity/UserGroupEntity.java @@ -12,7 +12,7 @@ @EqualsAndHashCode(callSuper = true) @Data -@MongoEntity(collection = "userGroups") +@MongoEntity(collection = "UserGroups") @FieldNameConstants(asEnum = true) public class UserGroupEntity extends ReactivePanacheMongoEntity { diff --git a/apps/user-group-ms/connector/dao/src/main/java/it/pagopa/selfcare/user_group/connector/dao/model/UserGroupEntity.java b/apps/user-group-ms/connector/dao/src/main/java/it/pagopa/selfcare/user_group/connector/dao/model/UserGroupEntity.java index df84a239..327b2114 100644 --- a/apps/user-group-ms/connector/dao/src/main/java/it/pagopa/selfcare/user_group/connector/dao/model/UserGroupEntity.java +++ b/apps/user-group-ms/connector/dao/src/main/java/it/pagopa/selfcare/user_group/connector/dao/model/UserGroupEntity.java @@ -16,7 +16,7 @@ @Data @NoArgsConstructor @EqualsAndHashCode(of = "id") -@Document("userGroups") +@Document("UserGroups") @FieldNameConstants(onlyExplicitlyIncluded = true) public class UserGroupEntity implements UserGroupOperations {