Announcement Announcement Module
Collapse
No announcement yet.
schemeUpdate, Spring 2.0 and Hibernate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • schemeUpdate, Spring 2.0 and Hibernate

    Hi
    If I set schemeUpdate=true on my LocalSessionFactoryBean the sessionFactory couldn't be created. It happens of wrong call precedence.
    Look at this:

    AbstractSessionFactoryBean:
    public void afterPropertiesSet() throws Exception {
    SessionFactory rawSf = buildSessionFactory();
    this.sessionFactory = wrapSessionFactoryIfNecessary(rawSf);
    }

    LocalSessionFactoryBean:
    protected SessionFactory buildSessionFactory() throws Exception {
    SessionFactory sf = null;
    <...>
    if (this.schemaUpdate) {
    updateDatabaseSchema(); // sessionFactory is null here
    }
    return sf;
    }


    Or maybe I misunderstand something?
    Thanks

  • #2
    2.0.1 fix

    Hey crane2002,

    It is fixed for 2.0.1: http://opensource.atlassian.com/proj...rowse/SPR-2699

    -Arthur Loder

    Comment

    Working...
    X