Skip to content

Add typed UUID generators#7

Open
ivan-kripakov-m10 wants to merge 1 commit into
hegeldev:mainfrom
ivan-kripakov-m10:common-java-generators
Open

Add typed UUID generators#7
ivan-kripakov-m10 wants to merge 1 commit into
hegeldev:mainfrom
ivan-kripakov-m10:common-java-generators

Conversation

@ivan-kripakov-m10

@ivan-kripakov-m10 ivan-kripakov-m10 commented Jun 21, 2026

Copy link
Copy Markdown

Closes #6

- change uuids() to return java.util.UUID values
- add uuidStrings() alongside version configuration support
- default UUID generation to version 4 and validate versions in [1, 8]
- derive UUID.class via Generators.forType
- move UUID coverage into dedicated generator tests
@ivan-kripakov-m10

ivan-kripakov-m10 commented Jun 22, 2026

Copy link
Copy Markdown
Author

noticed jacoco failure in CI, took a quick look, the problem is in the not clearly defined API for anyVersion() behaviour (doing so client can tell hegel-core to generate uuid with any version) - currently it can be done via uuids().version(null) - looks a bit awkard

while working on the fix, found hegeldev/hegel-core#140 (comment)

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.

Add first-class UUID support to hegel-java

1 participant