From 52417f4d14d93875d65f9654ded665faad0904f8 Mon Sep 17 00:00:00 2001 From: babyfish-ct Date: Mon, 2 Dec 2024 10:02:33 +0800 Subject: [PATCH] save-command.uage --- docs/mutation/save-command/usage.mdx | 4 ++-- .../current/mutation/save-command/usage.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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