Created
September 1, 2009 07:05
-
-
Save tomgullo/178954 to your computer and use it in GitHub Desktop.
bind user connection to groovy sql
This file contains 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
//bind user connection to groovy sql | |
Connection conn = dataSource.getConnection(username, password) | |
def hibernateSession = sessionFactory.currentSession | |
hibernateSession.reconnect(conn) | |
def sql = new Sql(sessionFactory.getCurrentSession().connection()) | |
// | |
//perform sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment