Skip to content

Conversation

marcusvoltolim
Copy link

@marcusvoltolim marcusvoltolim commented Sep 15, 2025

Resolves #6418

  • Introduced a customizable uuidSupplier in AutoGeneratedUuidExtension with default UUID.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 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)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@marcusvoltolim marcusvoltolim requested a review from a team as a code owner September 15, 2025 22:10
@marcusvoltolim marcusvoltolim changed the title feat(6418): Add customizable UUID supplier in AutoGeneratedUuidExtension feat(6418): AutoGeneratedUuidExtension refactoring to accept UUID supplier Sep 15, 2025
@marcusvoltolim marcusvoltolim changed the title feat(6418): AutoGeneratedUuidExtension refactoring to accept UUID supplier feat(6418): Refactor **AutoGeneratedUuidExtension** to accept UUID supplier Sep 15, 2025
@marcusvoltolim marcusvoltolim changed the title feat(6418): Refactor **AutoGeneratedUuidExtension** to accept UUID supplier feat(6418): Refactor *AutoGeneratedUuidExtension* to accept UUID supplier Sep 15, 2025
@marcusvoltolim marcusvoltolim changed the title feat(6418): Refactor *AutoGeneratedUuidExtension* to accept UUID supplier feat(6418): Refactor AutoGeneratedUuidExtension to accept UUID supplier Sep 15, 2025
@marcusvoltolim marcusvoltolim changed the title feat(6418): Refactor AutoGeneratedUuidExtension to accept UUID supplier feat(6418): EnhancedDynamoDB#AutoGeneratedUuidExtension with supplier UUID Sep 15, 2025
@marcusvoltolim marcusvoltolim force-pushed the feature-6418/auto-generated-uuid-extension-custom-supplier-uuid branch from bae19b0 to 34fcc4e Compare September 15, 2025 23:57
- Introduced a customizable `uuidSupplier` in `AutoGeneratedUuidExtension` with default `UUID.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
@marcusvoltolim marcusvoltolim force-pushed the feature-6418/auto-generated-uuid-extension-custom-supplier-uuid branch from 34fcc4e to 79c6d17 Compare September 16, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EnhancedDynamoDB#AutoGeneratedUuidExtension with supplier UUID
1 participant