Skip to content

Commit

Permalink
use util
Browse files Browse the repository at this point in the history
  • Loading branch information
ybz1013 committed Nov 7, 2024
1 parent 6eaf478 commit 2e11f80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public <RELATIONSHIP extends RecordTemplate> void removeRelationshipsV2(@Nonnull
for (RELATIONSHIP relationship : relationships) {
_server.createSqlUpdate(SQLStatementUtils.deleteLocalRelationshipSQL(SQLSchemaUtils.getRelationshipTableName(relationship),
RemovalOption.REMOVE_ALL_EDGES_FROM_SOURCE_TO_DESTINATION))
.setParameter(CommonColumnName.SOURCE, sourceUrn != null ? sourceUrn.toString() : getSourceUrnFromRelationship(relationship).toString())
.setParameter(CommonColumnName.SOURCE, GraphUtils.getSourceUrnBasedOnRelationshipVersion(relationship, sourceUrn))
.setParameter(CommonColumnName.DESTINATION, getDestinationUrnFromRelationship(relationship).toString())
.execute();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3133,7 +3133,6 @@ public void testAddWithLocalRelationshipBuilder() throws URISyntaxException {
assertEquals(aspects.size(), 1);
}

// TODO: fix this
@Test
public void testAddRelationshipsFromAspect() throws URISyntaxException {
EbeanLocalDAO<EntityAspectUnion, FooUrn> fooDao = createDao(FooUrn.class);
Expand Down

0 comments on commit 2e11f80

Please sign in to comment.