Commit transaction in groovy

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
def tx = de.hybris.platform.tx.Transaction.current();
... do something
tx.commit();
tx.begin();
def tx = de.hybris.platform.tx.Transaction.current(); ... do something tx.commit(); tx.begin();
def tx = de.hybris.platform.tx.Transaction.current();
... do something
tx.commit();
tx.begin();

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.