ashishm07 commented on code in PR #7103:
URL: https://github.com/apache/ignite-3/pull/7103#discussion_r2596473629


##########
examples/java/src/main/java/org/apache/ignite/example/table/MapperExample.java:
##########
@@ -50,10 +77,21 @@ public static void main(String[] args) throws Exception {
                     .table("person")
                     .recordView(mapper);
 
-
             Person myPerson = new Person(2, "2", "John Doe", 40, "Apache");
 
             view.upsert(null, myPerson);
+        } finally {
+
+            System.out.println("Dropping the table...");
+        }
+        try (
+                Connection conn = 
getConnection("jdbc:ignite:thin://127.0.0.1:10800/");

Review Comment:
   Updated as requested. The code now uses one shared Connection object in the 
outer try-catch block, consistent with SqlJdbcExample.java.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to