private void setValidateOptionIfAvailable ( Database database , UniqueConstraint uniqueConstraint , Map < String , ? > columnsMetadata ) { if ( ! ( database instanceof OracleDatabase ) ) { return ; } final Object constraintValidate = columnsMetadata . get ( "CONSTRAINT_VALIDATE" ) ; final String VALIDATE = "VALIDATED" ; if ( constraintValidate != null && ! constraintValidate . toString ( ) . trim ( ) . isEmpty ( ) ) { uniqueConstraint . setShouldValidate ( VALIDATE . equals ( cleanNameFromDatabase ( constraintValidate . toString ( ) . trim ( ) , database ) ) ) ; } }
Method to map validate option for UC . This thing works only for ORACLE