You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2026/10/11 16:01:58 UTC

(cayenne) branch master updated: refactoring DataRow structure

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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git


The following commit(s) were added to refs/heads/master by this push:
     new 8e53c30c5 refactoring DataRow structure
8e53c30c5 is described below

commit 8e53c30c5406f091e376a29c9c5fbfb5df1457c3
Author: Andrus Adamchik <an...@objectstyle.com>
AuthorDate: Sun Oct 11 11:37:36 2026 -0400

    refactoring DataRow structure
    
    * private vars
---
 cayenne/src/main/java/org/apache/cayenne/DataRow.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/cayenne/src/main/java/org/apache/cayenne/DataRow.java b/cayenne/src/main/java/org/apache/cayenne/DataRow.java
index 2cd2250f7..63a0897ff 100644
--- a/cayenne/src/main/java/org/apache/cayenne/DataRow.java
+++ b/cayenne/src/main/java/org/apache/cayenne/DataRow.java
@@ -43,9 +43,10 @@ import java.util.function.BiConsumer;
 public class DataRow implements Map<String, Object>, Serializable {
 
     private final HashMap<String, Object> values;
-    protected final long version;
-    protected final String entityName;
-    protected long replacesVersion = Persistent.DEFAULT_VERSION;
+    private final long version;
+    private final String entityName;
+    
+    private long replacesVersion;
 
     /**
      * Creates a row over the given values, with the given entity name and snapshot version. The map is not copied:
@@ -58,6 +59,7 @@ public class DataRow implements Map<String, Object>, Serializable {
         this.values = values;
         this.entityName = entityName;
         this.version = version;
+        this.replacesVersion = Persistent.DEFAULT_VERSION;
     }
 
     /**