Skip to content

Commit

Permalink
fix: set isoMetadata title on creation
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVolland committed Dec 17, 2024
1 parent 42e78a7 commit 417f3ae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public String create(String title, MetadataProfile profile) {
TechnicalMetadata technicalMetadata = new TechnicalMetadata(title, metadataId);
IsoMetadata isoMetadata = new IsoMetadata(title, metadataId);
isoMetadata.getData().setMetadataProfile(profile);
isoMetadata.getData().setTitle(title);

clientMetadataRepository.save(clientMetadata);
technicalMetadataRepository.save(technicalMetadata);
Expand Down Expand Up @@ -102,6 +103,7 @@ public String create(String title, MetadataProfile profile, String cloneMetadata
new TypeReference<JsonIsoMetadata>() {}
);
clonedIsoData.setMetadataProfile(profile);
clonedIsoData.setTitle(title);

JsonClientMetadata clonedClientData = objectMapper.readValue(
objectMapper.writeValueAsString(oClient.getData()),
Expand Down

0 comments on commit 417f3ae

Please sign in to comment.