private void setValidateOptionIfAvailable ( Database database , ForeignKey foreignKey , CachedRow cachedRow ) { if ( ! ( database instanceof OracleDatabase ) ) { return ; } final String constraintValidate = cachedRow . getString ( "FK_VALIDATE" ) ; final String VALIDATE = "VALIDATED" ; if ( constraintValidate != null && ! constraintValidate . isEmpty ( ) ) { foreignKey . setShouldValidate ( VALIDATE . equals ( cleanNameFromDatabase ( constraintValidate . trim ( ) , database ) ) ) ; } }
Method to map validate option for FK . This thing works only for ORACLE