Skip to content

Commit

Permalink
Merge pull request #6988 from LeadingPointDev/lp-contrib/6987-physica…
Browse files Browse the repository at this point in the history
…l-flow-involvements

Lp contrib/6987 physical flow involvements
  • Loading branch information
davidwatkins73 authored Feb 19, 2024
2 parents 3e4dbbb + cd5102a commit 5ad2542
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions waltz-data/src/main/java/org/finos/waltz/data/JooqUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.finos.waltz.schema.tables.MeasurableCategory;
import org.finos.waltz.schema.tables.MeasurableRating;
import org.finos.waltz.schema.tables.OrganisationalUnit;
import org.finos.waltz.schema.tables.PhysicalFlow;
import org.finos.waltz.schema.tables.SurveyQuestion;
import org.finos.waltz.schema.tables.SurveyTemplate;
import org.finos.waltz.schema.tables.records.ChangeLogRecord;
Expand Down Expand Up @@ -621,6 +622,18 @@ public static CommonTableFields<?> determineCommonTableFields(EntityKind kind, S
.descriptionField(st.DESCRIPTION)
.externalIdField(st.EXTERNAL_ID)
.build();
case PHYSICAL_FLOW:
PhysicalFlow pf = alias == null ? Tables.PHYSICAL_FLOW : Tables.PHYSICAL_FLOW.as(alias);
return ImmutableCommonTableFields
.builder()
.entityKind(EntityKind.PHYSICAL_FLOW)
.table(pf)
.idField(pf.ID)
.parentIdField(null)
.nameField(pf.NAME)
.descriptionField(pf.DESCRIPTION)
.externalIdField(pf.EXTERNAL_ID)
.build();
default:
throw new UnsupportedOperationException("Cannot determine table fields for entity kind:" + kind);
}
Expand Down

0 comments on commit 5ad2542

Please sign in to comment.