Skip to content

Commit

Permalink
Fix aiApplication relationship to avoid collisions
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Grote <[email protected]>
  • Loading branch information
cmgrote committed Feb 13, 2025
1 parent f1a2e8d commit 71bcfd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion sdk/src/main/java/com/atlan/generators/GeneratorConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public class GeneratorConfig {
Map.entry("exceptionsForBusinessPolicy", "exceptionForBusinessPolicy"),
Map.entry("supersetChartFormData", "putSupersetChartFormData"),
Map.entry("columnHierarchy", "putColumnHierarchy"),
Map.entry("bigqueryTagHierarchy", "putBigqueryTagHierarchy"));
Map.entry("bigqueryTagHierarchy", "putBigqueryTagHierarchy"),
Map.entry("applications", "aiApplication"));

private static final Map<String, String> DEFAULT_ATTRIBUTE_RENAMES = Map.ofEntries(
Map.entry("connectorName", "connectorType"),
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/atlan/model/assets/AIModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class AIModel extends Asset implements IAIModel, IAI, ICatalog, IAsset, I

/** AI applications that are created using this AI model */
@Attribute
@Singular
@Singular("aiApplication")
SortedSet<IAIApplication> applications;

/** Accountability configuration for ensuring the ethical use of an AI asset */
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/test/java/com/atlan/model/assets/AIModelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ public class AIModelTest {
.aiModelDatasetsDSL("String0")
.aiModelStatus(AIModelStatus.ACTIVE)
.aiModelVersion("String0")
.application(AIApplication.refByGuid("705d96f4-bdb6-4792-8dfe-8dc4ca3d2c23"))
.application(AIApplication.refByQualifiedName("default/snowflake/1234567890/test/qualifiedName"))
.aiApplication(AIApplication.refByGuid("705d96f4-bdb6-4792-8dfe-8dc4ca3d2c23"))
.aiApplication(AIApplication.refByQualifiedName("default/snowflake/1234567890/test/qualifiedName"))
.build();

private static final int hash = full.hashCode();
Expand Down

0 comments on commit 71bcfd3

Please sign in to comment.