You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2013/12/12 13:47:03 UTC
[2/2] git commit: ISIS-632: PublishedEvent#id set to 42 chars.
ISIS-632: PublishedEvent#id set to 42 chars.
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/08d5ca7b
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/08d5ca7b
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/08d5ca7b
Branch: refs/heads/master
Commit: 08d5ca7b027a44da748700823bf2266dfe63bea9
Parents: d8dbc05
Author: Dan Haywood <da...@apache.org>
Authored: Thu Dec 12 12:46:15 2013 +0000
Committer: Dan Haywood <da...@apache.org>
Committed: Thu Dec 12 12:46:15 2013 +0000
----------------------------------------------------------------------
.../jdo/applib/service/publish/PublishedEvent.java | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/08d5ca7b/component/objectstore/jdo/jdo-applib/src/main/java/org/apache/isis/objectstore/jdo/applib/service/publish/PublishedEvent.java
----------------------------------------------------------------------
diff --git a/component/objectstore/jdo/jdo-applib/src/main/java/org/apache/isis/objectstore/jdo/applib/service/publish/PublishedEvent.java b/component/objectstore/jdo/jdo-applib/src/main/java/org/apache/isis/objectstore/jdo/applib/service/publish/PublishedEvent.java
index f641d12..ecb08a6 100644
--- a/component/objectstore/jdo/jdo-applib/src/main/java/org/apache/isis/objectstore/jdo/applib/service/publish/PublishedEvent.java
+++ b/component/objectstore/jdo/jdo-applib/src/main/java/org/apache/isis/objectstore/jdo/applib/service/publish/PublishedEvent.java
@@ -35,6 +35,7 @@ import org.apache.isis.applib.annotation.NotPersisted;
import org.apache.isis.applib.annotation.Programmatic;
import org.apache.isis.applib.annotation.Title;
import org.apache.isis.applib.annotation.Where;
+import org.apache.isis.applib.services.publish.EventMetadata;
import org.apache.isis.applib.services.publish.EventType;
@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.APPLICATION)
@@ -82,7 +83,7 @@ public class PublishedEvent {
private String id;
- @javax.jdo.annotations.Column(length=32)
+ @javax.jdo.annotations.Column(length=40)
@javax.jdo.annotations.PrimaryKey
@MemberOrder(sequence = "2")
public String getId() {
@@ -99,8 +100,16 @@ public class PublishedEvent {
/**
* Programmatic because information also available in the {@link #getId() id}.
+ *
+ * <p>
+ * Length of 42 because 36 chars (UUID) + 1 character + 5 chars for sequence number (allowing up to 99,999 events
+ * per Isis xactn).
+ *
+ * <p>
+ * @see EventMetadata#getId()
+ * @see https://issues.apache.org/jira/browse/ISIS-632
*/
- @javax.jdo.annotations.Column(length=32)
+ @javax.jdo.annotations.Column(length=42)
@Programmatic
public String getTransactionId() {
return transactionId;