You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sk...@apache.org on 2022/08/25 11:40:37 UTC

[ignite] branch master updated: IGNITE-17556 Ignite doc: Wrong use of setValueFields function in CacheJdbcPojoStore demo. Fixes #10203

This is an automated email from the ASF dual-hosted git repository.

sk0x50 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 2b2f789458d IGNITE-17556 Ignite doc: Wrong use of setValueFields function in CacheJdbcPojoStore demo. Fixes #10203
2b2f789458d is described below

commit 2b2f789458dae5992cf82c31614b0a5a1db640a6
Author: liyujue <18...@163.com>
AuthorDate: Thu Aug 25 14:40:16 2022 +0300

    IGNITE-17556 Ignite doc: Wrong use of setValueFields function in CacheJdbcPojoStore demo. Fixes #10203
    
    Signed-off-by: Slava Koptilin <sl...@gmail.com>
---
 .../src/main/java/org/apache/ignite/snippets/ExternalStorage.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/ExternalStorage.java b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/ExternalStorage.java
index f66f03769c0..921832fa31b 100644
--- a/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/ExternalStorage.java
+++ b/docs/_docs/code-snippets/java/src/main/java/org/apache/ignite/snippets/ExternalStorage.java
@@ -73,8 +73,9 @@ public class ExternalStorage {
 
         personType.setKeyFields(new JdbcTypeField(java.sql.Types.INTEGER, "id", Integer.class, "id"));
 
-        personType.setValueFields(new JdbcTypeField(java.sql.Types.INTEGER, "id", Integer.class, "id"));
-        personType.setValueFields(new JdbcTypeField(java.sql.Types.VARCHAR, "name", String.class, "name"));
+        personType.setValueFields(
+            new JdbcTypeField(java.sql.Types.INTEGER, "id", Integer.class, "id"),
+            new JdbcTypeField(java.sql.Types.VARCHAR, "name", String.class, "name"));
 
         factory.setTypes(personType);