Merge "TEIV: Update documnentation"
authorJohn Keeney <john.keeney@est.tech>
Tue, 15 Oct 2024 11:48:50 +0000 (11:48 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Tue, 15 Oct 2024 11:48:50 +0000 (11:48 +0000)
1  2 
pgsql-schema-generator/src/main/java/org/oran/smo/teiv/pgsqlgenerator/graphgenerator/EntityGraphGeneratorUml.java

@@@ -67,12 -71,12 +71,12 @@@ public class EntityGraphGeneratorUml 
          StringBuilder sb = new StringBuilder();
          sb.append("@startuml\n");
          sb.append("skinparam class {\n");
-         sb.append("    BackgroundColor<<Entity>> LightGray\n");
+         sb.append("    BackgroundColor<<Entity>> " + helperFunctions.getNodeFillColour(moduleName) + " \n");
          sb.append("    BackgroundColor<<Module>> LightBlue\n");
          sb.append("}\n");
 -        sb.append(String.format("class %s <<Module>> {\n}\n", moduleName));
 +        sb.append(String.format("class %s <<Module>> {%n}%n", moduleName));
          for (Entity entity : entities) {
 -            sb.append(String.format("class %s <<Entity>> {\n", entity.getEntityName()));
 +            sb.append(String.format("class %s <<Entity>> {%n", entity.getEntityName()));
              List<Attribute> attributes = entity.getAttributes();
              for (Attribute attribute : attributes) {
                  sb.append(String.format("    %s : %s\n", attribute.getName(), attribute.getYangDataType()));