Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Supported Hibernate/Spring Version(s)?

    Do you know whether SmartGWT supports the latest Spring and Hibernate releases?
    I'm running with Spring 3.1.1 and Hibernate 4.1.4, getting the following error in the log:
    Code:
    ERROR HibernateDataSource - Attempted lookup of Hibernate sessionFactory via Spring bean &sessionFactory failed. The returned object was not an instance of LocalSessionFactoryBean
    It is a LocalSessionFactoryBean, but it is version 4: "org.springframework.orm.hibernate4.LocalSessionFactoryBean"




    Isomorphic SmartClient Framework (v8.2p_2012-04-30/Enterprise Deployment 2012-04-30)

    #2
    Rather than looking for a concrete LocalSessionFactoryBean (which could be either v3 or v4), you could look for the Factory by interface, which the bean implements:
    Code:
    org.springframework.beans.factory.FactoryBean<SessionFactory>

    Comment


      #3
      Hi,

      Thanks for info.

      With next nightly build it should work with org.springframework.orm.hibernate4.LocalSessionFa ctoryBean as well.

      Regards,
      Alius

      Comment


        #4
        Will this be incorporated into version 3.0 as well?
        On the other hand, is the a target release date/timeframe for 3.1?

        Comment


          #5
          Hi,

          Just ported it to 8.2/3.0 branch. Should be available with next nightly build.

          Regards,
          Alius

          Comment

          Working...
          X