aws-sdk-java-v2 icon indicating copy to clipboard operation
aws-sdk-java-v2 copied to clipboard

EnhancedDynamoDB#AutoGeneratedUuidExtension with supplier UUID

Open marcusvoltolim opened this issue 3 months ago • 0 comments

Describe the feature

Possibility of setting a supplier to generate the UUID, thus making it compatible with generating other versions of UUID such as v7

Use Case

I need a UUID with TimeStamp as version 7, but the AutoGeneratedUuidExtension is stuck with UUID.randomUUID() which only generates version 4.

Proposed Solution

Evolve the extension to accept a supplier or use the standard UUID.randomUUID().

Other Information

No response

Acknowledgements

  • [x] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

AWS Java SDK version used

2.33.9

JDK version used

java version "21.0.7" 2025-04-15 LTS Java(TM) SE Runtime Environment Oracle GraalVM 21.0.7+8.1 (build 21.0.7+8-LTS-jvmci-23.1-b60) Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.7+8.1 (build 21.0.7+8-LTS-jvmci-23.1-b60, mixed mode, sharing)

Operating System and version

Ubuntu 25.04

marcusvoltolim avatar Sep 15 '25 18:09 marcusvoltolim