Grails

Lazy load support for shell

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-RC2
  • Fix Version/s: 1.2.1
  • Component/s: None
  • Labels:
    None

Activity

Hide
Graeme Rocher added a comment -

reloading now works in grails console, but not shell

Show
Graeme Rocher added a comment - reloading now works in grails console, but not shell
Hide
Graeme Rocher added a comment -

reloading support for shell postponed until post 1.0, console reloads though

Show
Graeme Rocher added a comment - reloading support for shell postponed until post 1.0, console reloads though
Hide
Graeme Rocher added a comment -

Moving non-critical issues that aren't going to make it into 1.1 to 1.2

Show
Graeme Rocher added a comment - Moving non-critical issues that aren't going to make it into 1.1 to 1.2
Hide
Graeme Rocher added a comment -

There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3

for 1.2 final only issues considered blocking will now be fixed

Show
Graeme Rocher added a comment - There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3 for 1.2 final only issues considered blocking will now be fixed
Hide
Scott Davis added a comment -

Workaround:
-------
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))
-------
as noted in: http://old.nabble.com/domain-relationships-in-shell---console-td15434264.html

Show
Scott Davis added a comment - Workaround: ------- 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)) ------- as noted in: http://old.nabble.com/domain-relationships-in-shell---console-td15434264.html
Hide
Graeme Rocher added a comment -

could get that into point 1.2.1 release

Show
Graeme Rocher added a comment - could get that into point 1.2.1 release

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: