May 15, 2023 2:33:23 PM seb leridon avatar

Using transactions

exemple :

TransactionManager.beginTransaction( null );

            try
            {
                doSomething( ) ;
                TransactionManager.commitTransaction( null );
            }
            catch( Exception e )
            {
                TransactionManager.rollBack( null );
                throw new AppException( e.getMessage( ), e );
            }