diff --git a/docs/mutation/save-command/usage.mdx b/docs/mutation/save-command/usage.mdx index 395ba8ff8..c64eb5614 100644 --- a/docs/mutation/save-command/usage.mdx +++ b/docs/mutation/save-command/usage.mdx @@ -468,7 +468,7 @@ public void addBook( @PathVariable long storeId, @PathVariable long bookId ) { - sqlClient.save( + sqlClient.update( Immutables.createBook( draft.setId(bookId); draft.setStoreId(storeId); @@ -486,7 +486,7 @@ fun addBook( @PathVariable storeId: Long, @PathVariable bookId: Long ) { - sqlClient.save( + sqlClient.update( Book { id = bookId storeId = storeId diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/mutation/save-command/usage.mdx b/i18n/zh/docusaurus-plugin-content-docs/current/mutation/save-command/usage.mdx index e1b1140f2..0305040e4 100644 --- a/i18n/zh/docusaurus-plugin-content-docs/current/mutation/save-command/usage.mdx +++ b/i18n/zh/docusaurus-plugin-content-docs/current/mutation/save-command/usage.mdx @@ -468,7 +468,7 @@ public void addBook( @PathVariable long storeId, @PathVariable long bookId ) { - sqlClient.save( + sqlClient.update( Immutables.createBook( draft.setId(bookId); draft.setStoreId(storeId); @@ -486,7 +486,7 @@ fun addBook( @PathVariable storeId: Long, @PathVariable bookId: Long ) { - sqlClient.save( + sqlClient.update( Book { id = bookId storeId = storeId