Skip to content

Commit

Permalink
Update spring-content-rest/src/main/java/org/springframework/data/res…
Browse files Browse the repository at this point in the history
…t/extensions/entitycontent/RepositoryEntityMultipartController.java

Co-authored-by: Lars Vierbergen <[email protected]>
  • Loading branch information
NielsCW and vierbergenlars authored Jul 18, 2024
1 parent 0d46e95 commit eec478b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public ResponseEntity<RepresentationModel<?>> createEntityAndContent(RootResourc

String store = pathSegments[1];

// Save the entity and re-assign the result to savedEntity, so that its @Id property exists
// Save the entity and re-assign the result to savedEntity, so that it exists in the repository before content is added to it.
savedEntity = repoInvokerFactory.getInvokerFor(domainType).invokeSave(savedEntity);

StoreInfo info = this.stores.getStore(Store.class, StoreUtils.withStorePath(store));
Expand Down

0 comments on commit eec478b

Please sign in to comment.