<bean id="sessionFactory_hotelbeds" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource_hotelbeds" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.hbm2ddl_auto">${hibernate.hbm2ddl_auto}</prop>
<prop key="hibernate.dialect">${hibernate.dialect.oracle}</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
<prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
<prop key="hibernate.current_session_context_class">${hibernate.current_session_context_class}</prop>
</props>
</property>
</bean>
hibernate.current_session_context_class的属性值为:org.springframework.orm.hibernate4.SpringSes