sk0x50 commented on code in PR #6348:
URL: https://github.com/apache/ignite-3/pull/6348#discussion_r2259865422


##########
examples/src/main/java/org/apache/ignite/example/streaming/Account.java:
##########
@@ -15,48 +15,53 @@
  * limitations under the License.
  */
 
-package org.apache.ignite.example.streaming.pojo;
+package org.apache.ignite.example.streaming;
 
-/**
- * POJO class that represents Account value.
- */
-public class AccountValue {
-    /** Name. */
-    private String name;
+public class Account {
+    private int     id;
+    private String  name;
+    private long    balance;
+    private boolean active;
 
-    /** Balance. */
-    private long balance;
+    public Account() {
+    }
 
-    /** Is account active. */
-    private boolean active;
+    public Account(int id, String name, long balance, boolean active) {
+        this.id      = id;
+        this.name    = name;
+        this.balance = balance;
+        this.active  = active;
+    }
+
+    public Account(int id) {
+        this.id = id;
+    }
+
+    public int getId() {
+        return id;
+    }
+    public void setId(int id) {

Review Comment:
   It would be nice to have an empty line before this method (here and below).



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to