aws-sdk-java-v2
aws-sdk-java-v2 copied to clipboard
feat(6418): EnhancedDynamoDB#AutoGeneratedUuidExtension with supplier UUID
Resolves #6418
- Introduced a customizable
uuidSupplierinAutoGeneratedUuidExtensionwith defaultUUID.randomUUID()functionality. - Added a builder pattern to create extensions with custom suppliers.
- Enhanced tests to validate the custom UUID supplier functionality and maintain backward compatibility.
- Refactoring all tests and add more scenarios;
- Fixing AutoGeneratedUuidExtension`s JavaDoc
Motivation and Context
Possibility of working with other versions of UUID such as v7 which is based on TimeStamp, facilitating the ordering of records by UUID.
Modifications
Adding Supplier<UUID> and Builder in AutoGeneratedUuidExtension
Testing
Tested the 2 scenarios with standard supplier that uses UUID.randomUUID() and the new scenario setting a supplier that generates UUIDv7, validating the UUID version.
Screenshots (if appropriate)
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
Checklist
- [X] I have read the CONTRIBUTING document
- [X] Local run of
mvn installsucceeds - [X] My code follows the code style of this project
- [X] My change requires a change to the Javadoc documentation
- [X] I have updated the Javadoc documentation accordingly
- [X] I have added tests to cover my changes
- [X] All new and existing tests passed
- [X] I have added a changelog entry. Adding a new entry must be accomplished by running the
scripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes. - [ ] My change is to implement 1.11 parity feature and I have updated LaunchChangelog
License
- [X] I confirm that this pull request can be released under the Apache 2 license