@Override public Object getValidatorFactoryReference() { return delegate.getValidatorFactoryReference(); }
private static ValidatorFactory resolveProvidedFactory(SessionFactoryOptions options) { final Object validatorFactoryReference = options.getValidatorFactoryReference(); if ( validatorFactoryReference == null ) { return null; } try { return ValidatorFactory.class.cast( validatorFactoryReference ); } catch ( ClassCastException e ) { throw new IntegrationException( String.format( Locale.ENGLISH, "ValidatorFactory reference (provided via %s) was not castable to %s : %s", SessionFactoryOptions.class.getName(), ValidatorFactory.class.getName(), validatorFactoryReference.getClass().getName() ) ); } }
this.properties.putAll( serviceRegistry.getService( ConfigurationService.class ).getSettings() ); if ( !properties.containsKey( AvailableSettings.JPA_VALIDATION_FACTORY ) ) { if ( getSessionFactoryOptions().getValidatorFactoryReference() != null ) { properties.put( AvailableSettings.JPA_VALIDATION_FACTORY, getSessionFactoryOptions().getValidatorFactoryReference() );
@Override public Object getValidatorFactoryReference() { return delegate.getValidatorFactoryReference(); }
private static ValidatorFactory resolveProvidedFactory(SessionFactoryOptions options) { final Object validatorFactoryReference = options.getValidatorFactoryReference(); if ( validatorFactoryReference == null ) { return null; } try { return ValidatorFactory.class.cast( validatorFactoryReference ); } catch ( ClassCastException e ) { throw new IntegrationException( String.format( Locale.ENGLISH, "ValidatorFactory reference (provided via %s) was not castable to %s : %s", SessionFactoryOptions.class.getName(), ValidatorFactory.class.getName(), validatorFactoryReference.getClass().getName() ) ); } }
this.properties.putAll( serviceRegistry.getService( ConfigurationService.class ).getSettings() ); if ( !properties.containsKey( AvailableSettings.JPA_VALIDATION_FACTORY ) ) { if ( getSessionFactoryOptions().getValidatorFactoryReference() != null ) { properties.put( AvailableSettings.JPA_VALIDATION_FACTORY, getSessionFactoryOptions().getValidatorFactoryReference() );