diff --git a/server/src/main/java/access/config/ApplicationConverter.java b/server/src/main/java/access/config/ApplicationConverter.java index 4306790e..21655543 100644 --- a/server/src/main/java/access/config/ApplicationConverter.java +++ b/server/src/main/java/access/config/ApplicationConverter.java @@ -25,6 +25,7 @@ public String convertToDatabaseColumn(Set attribute) { @SuppressWarnings("unchecked") public Set convertToEntityAttribute(String dbData) { Set> set = objectMapper.readValue(dbData, Set.class); - return set.stream().map(m -> new Application(m.get("manageId"), EntityType.valueOf(m.get("manageType")))).collect(Collectors.toSet()); + return set.stream().map(m -> new Application(m.get("manageId"), EntityType.valueOf(m.get("manageType")))) + .collect(Collectors.toSet()); } } diff --git a/server/src/main/resources/db/mysql/migration/V13_0__index_roles_manage_identifiers.sql b/server/src/main/resources/db/mysql/migration/V13_0__index_roles_manage_identifiers.sql new file mode 100644 index 00000000..03856b85 --- /dev/null +++ b/server/src/main/resources/db/mysql/migration/V13_0__index_roles_manage_identifiers.sql @@ -0,0 +1,2 @@ +ALTER TABLE `roles` + ADD INDEX roles_manage_identifiers( (CAST(applications->'$[*].manageId' AS char(255) ARRAY)) ); \ No newline at end of file