Changes between Version 3 and Version 4 of Spring


Ignore:
Timestamp:
11/11/08 07:51:58 (16 years ago)
Author:
erikvaningen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Spring

    v3 v4  
    1111        void saveErikExampleDomainClass(ErikExampleDomain erikExampleDomain){
    1212                sessionFactory.getCurrentSession().save(erikExampleDomain)
    13 
    14 
    1513}}}
    1614This configuaration needed:
     
    3230                <property name="sessionFactory" ref="sessionFactory" />
    3331        </bean>
    34 
    3532}}}
    3633'''Chosen Option 1'''. This option is chosen because (1) one line less of configuration (2) It is working directly with the sessionFactory instead of a Facade like HibernateTemplate. Working with a template can have advantages. However in case of Hibernate, Spring has little to add because Hibernate is a very mature package. (3) SessionFactory is directly available. This might be necessary in cases of more advanced use of Hibernate.