Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support programmatically registered constraints on Hibernate entities #200

Conversation

agrancaric
Copy link
Collaborator

@agrancaric agrancaric commented Feb 13, 2024

Basic information

  • nrich version:
    2.1.1
  • Module:
    nrich-validation-spring-boot-starter

Additional information

Description

Summary

Add support for programmatically registered constraints on hibernate entites by registering Spring's validator with Hibernate BeanValidationEventListener.

Details

Add support for programmatically registered constraints on hibernate entites by registering Spring's validator with Hibernate BeanValidationEventListener.

Related issue

Types of changes

  • Enhancement (non-breaking change which enhances existing functionality)

Checklist

  • I have read the project's CONTRIBUTING document
  • I have checked my code with the project's static analysis tooling
  • I have formatted my code with the project's IDEA code-style configuration
  • I have checked my code for misspellings
  • I have organized my changes in easy-to-follow commits
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests pass.

@agrancaric agrancaric requested a review from jzrilic February 13, 2024 13:16
@agrancaric agrancaric self-assigned this Feb 13, 2024
@agrancaric agrancaric force-pushed the feature_addSupportForProgrammaticallyRegisteredConstraintsOnEntites branch from 9ca6423 to 1bf8c68 Compare February 13, 2024 14:08
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.81%. Comparing base (4f084aa) to head (ae90b1a).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #200   +/-   ##
=========================================
  Coverage     96.81%   96.81%           
  Complexity     1290     1290           
=========================================
  Files           184      184           
  Lines          2954     2955    +1     
  Branches        260      260           
=========================================
+ Hits           2860     2861    +1     
  Misses           39       39           
  Partials         55       55           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@agrancaric agrancaric force-pushed the feature_addSupportForProgrammaticallyRegisteredConstraintsOnEntites branch from 1bf8c68 to e2ad9b9 Compare February 14, 2024 06:07
@jzrilic jzrilic changed the title Add support for programmatically registered constraints on hibernate … Support programmatically registered constraints on Hibernate entities Mar 8, 2024
…entites by registering Spring's validator with Hibernate BeanValidationEventListener
@agrancaric agrancaric force-pushed the feature_addSupportForProgrammaticallyRegisteredConstraintsOnEntites branch from e2ad9b9 to ae90b1a Compare March 8, 2024 11:02
@jzrilic jzrilic merged commit 7cbe9ab into master Mar 8, 2024
8 checks passed
@jzrilic jzrilic deleted the feature_addSupportForProgrammaticallyRegisteredConstraintsOnEntites branch March 8, 2024 11:20
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