Hi,
On 12 Feb 2008, at 15:21, Fernando wrote:
> I've found this:
>
> import org.hibernate.Session
> import org.hibernate.SessionFactory
> import org.springframework.orm.hibernate3.SessionFactoryUtils
> import org.springframework.orm.hibernate3.SessionHolder
> import
> org
> .springframework.transaction.support.TransactionSynchronizationManager
> sessionFactory = ctx.getBean("sessionFactory")
> session = SessionFactoryUtils.getSession(sessionFactory, true)
> TransactionSynchronizationManager.bindResource(sessionFactory, new
> SessionHolder(session))
>
Is there a file I can add that to so that it gets executed
automatically whenever I invoke "grails shell"? It's getting a bit
tedious copying and pasting it in every time. :)
Thanks
Jon
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email