From 59b067f9a2c0fbd0247daced6bd6516600efaf1e Mon Sep 17 00:00:00 2001 From: Tim Gage Date: Thu, 13 Jan 2022 16:01:01 +0000 Subject: [PATCH 1/2] Allow java.util.UUID as one of the types that are allowed for serialization by default. --- .../DefaultInvocationSerializer.java | 68 ++++++++++--------- .../TestDefaultInvocationSerializer.java | 8 +++ 2 files changed, 45 insertions(+), 31 deletions(-) diff --git a/transactionoutbox-core/src/main/java/com/gruelbox/transactionoutbox/DefaultInvocationSerializer.java b/transactionoutbox-core/src/main/java/com/gruelbox/transactionoutbox/DefaultInvocationSerializer.java index 3425ec30..026cc08b 100644 --- a/transactionoutbox-core/src/main/java/com/gruelbox/transactionoutbox/DefaultInvocationSerializer.java +++ b/transactionoutbox-core/src/main/java/com/gruelbox/transactionoutbox/DefaultInvocationSerializer.java @@ -42,6 +42,8 @@ import java.util.Map; import java.util.Set; import java.util.TimeZone; +import java.util.UUID; + import lombok.Builder; import lombok.extern.slf4j.Slf4j; @@ -54,6 +56,7 @@ *
  • Primitive types such as {@code int} or {@code double} or the boxed equivalents *
  • {@link String} *
  • {@link java.util.Date} + *
  • {@link java.util.UUID} *
  • The {@code java.time} classes: *