- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
@AutoValidated
    public void remove(
            @NotNull PaymentProviderConfiguration paymentProviderConfiguration
    ) {
        paymentProviderConfiguration.setDeleted(true);
        paymentProviderConfiguration.setDisabled(true);
        paymentProviderConfiguration.setEditable(false);
        paymentProviderConfigurationDAO.update(paymentProviderConfiguration);
        context.getHibernate().evict(paymentProviderConfiguration);
        context.getHibernate().flush();
    }
                                     
        
            интересно еще и то, что внутри paymentProviderConfigurationDAO.update(p  aymentProviderConfiguration); есть еще один flush