You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/01/14 11:42:27 UTC

[isis] branch master updated: ISIS-2479: makes TransactionId an immutable value type

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

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


The following commit(s) were added to refs/heads/master by this push:
     new cb86196  ISIS-2479: makes TransactionId an immutable value type
cb86196 is described below

commit cb86196d4ef394635c50ea2016b0a3b1e0bfb9a6
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Jan 14 12:42:12 2021 +0100

    ISIS-2479: makes TransactionId an immutable value type
---
 .../org/apache/isis/applib/services/xactn/TransactionId.java   | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/api/applib/src/main/java/org/apache/isis/applib/services/xactn/TransactionId.java b/api/applib/src/main/java/org/apache/isis/applib/services/xactn/TransactionId.java
index 8bf9569..ea1785f 100644
--- a/api/applib/src/main/java/org/apache/isis/applib/services/xactn/TransactionId.java
+++ b/api/applib/src/main/java/org/apache/isis/applib/services/xactn/TransactionId.java
@@ -22,13 +22,13 @@ import java.util.UUID;
 
 import org.apache.isis.commons.having.HasUniqueId;
 
-import lombok.Data;
+import lombok.Value;
 
 /**
  * 
  * @since 2.0 {@index}
  */
-@Data(staticConstructor = "of")
+@Value(staticConstructor = "of")
 public final class TransactionId implements HasUniqueId {
     
     private final UUID uniqueId;
@@ -40,6 +40,12 @@ public final class TransactionId implements HasUniqueId {
      */
     private final int sequence;
     
+    /**
+     * Unique identifier, to identify the persistence context, this TransactionId was created for.
+     * <p>
+     * Particularly useful, when there are multiple persistence contexts configured, while there are 
+     * no constraints to format of this String, this is left for the implementation to decide.  
+     */
     private final String context;
     
     // -- EMPTY