StandardServiceRegistryBuilder builder = ...; ... builder.applySetting( "hibernate.connection.provider_class", "lag" ); ...