I have tried with the configuration you have mentioned. in that case it perform the validation in some other schema( multiple schemas in database ) not in current schema in which current session factory is connected.