Skip to content

Commit

Permalink
Merge pull request #7 from gdi-be/fix-title
Browse files Browse the repository at this point in the history
Set isoMetadata title on creation
  • Loading branch information
KaiVolland authored Dec 17, 2024
2 parents 42e78a7 + 417f3ae commit 87cbb0a
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 87cbb0a

Please sign in to comment.