Marko Bekhta (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HV-1949 (
https://hibernate.atlassian.net/browse/HV-1949?atlOrigin=eyJpIjoiNjg2NDlk...
)
Re: Nondeterministic behavior of HibernateValidator (in springboot?) when both annotation
and xml-based definition are used (
https://hibernate.atlassian.net/browse/HV-1949?atlOrigin=eyJpIjoiNjg2NDlk...
)
Alternatively, a more stable solution could be to use programmatic mapping API for
everything and remove the XML + ServiceLoader:
final HibernateValidatorConfiguration configuration = Validation.byProvider(
HibernateValidator.class ).configure();
ConstraintMapping constraintMapping = configuration.createConstraintMapping();
configuration.addMapping( constraintMapping );
constraintMapping.constraintDefinition( AnyUuid.class )
.includeExistingValidators( true )
.validatedBy( AnyUuid.AnyUuidValidator.class );
constraintMapping.type( mwe.validatorfail.dto.SampleDTO.class ) // instead of an XML
.getter( "uuid" )
.constraint( new AnyUuidDef() )
.constraint( new NotNullDef() );
(
https://hibernate.atlassian.net/browse/HV-1949#add-comment?atlOrigin=eyJp...
) Add Comment (
https://hibernate.atlassian.net/browse/HV-1949#add-comment?atlOrigin=eyJp...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:bbd69a1 )