Created
April 7, 2011 07:04
-
-
Save emmanuelbernard/907193 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//old | |
public void flush() { | |
try { | |
if ( !isTransactionInProgress() ) { | |
throw new TransactionRequiredException( "no transaction is in progress" ); | |
} | |
getSession().flush(); | |
} | |
catch ( RuntimeException e ) { | |
throw convert( e ); | |
} | |
} | |
//new | |
public void flush() { | |
if ( !isTransactionInProgress() ) { | |
throw new TransactionRequiredException( "no transaction is in progress" ); | |
} | |
try { | |
getSession().flush(); | |
} | |
catch ( RuntimeException e ) { | |
throw convert( e ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, suggested patch applied to my branches for HHH-6095