Skip to content

Conversation

marko-bekhta
Copy link
Member

https://hibernate.atlassian.net/browse/HV-2004

I didn't want to have some hardcoded cache for patterns within the pattern constraint validator impl itself. Hence I was thinking that leveraging something similar to what we have for validation with payload could work.
initialization payload would be available to any constraints. As for patterns and their caching, limiting it to the predefined scope makes sense as we have all constraints initialized and can clear out the cache.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on licensing, please check here.


Copy link

@marko-bekhta marko-bekhta force-pushed the feat/HV-2004-add-constraint-initialization-payload branch from b5a14d2 to c5b8c43 Compare August 25, 2025 16:46
@marko-bekhta marko-bekhta force-pushed the feat/HV-2004-add-constraint-initialization-payload branch from c5b8c43 to 9648588 Compare September 3, 2025 08:45
@marko-bekhta marko-bekhta marked this pull request as draft September 3, 2025 08:45
@marko-bekhta marko-bekhta force-pushed the feat/HV-2004-add-constraint-initialization-payload branch from 9648588 to 3267cb0 Compare September 3, 2025 12:22
@marko-bekhta marko-bekhta marked this pull request as ready for review September 3, 2025 12:39
@marko-bekhta marko-bekhta force-pushed the feat/HV-2004-add-constraint-initialization-payload branch 3 times, most recently from e0a1f71 to c6d261c Compare September 8, 2025 16:40
 and use it to cache patterns in the predefined factory

Signed-off-by: marko-bekhta <[email protected]>
@marko-bekhta marko-bekhta force-pushed the feat/HV-2004-add-constraint-initialization-payload branch from c6d261c to 55f0f98 Compare September 8, 2025 20:58
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
79.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@marko-bekhta marko-bekhta merged commit 02ab7a1 into hibernate:main Sep 18, 2025
8 of 9 checks passed
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.

2 participants