Something usefull, I don't want to forget:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation" value="classpath:hibernate.cfg.xml"/>
<property name="namingStrategy" ref="namingStrategy"/>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
<bean id="namingStrategy" class="org.hibernate.cfg.ImprovedNamingStrategy"/>
4 comments:
Thanks, I am learning Spring and Hibernate and that was very helpful!
Indeed, thanks for posting.
Thanks also from me!!!
Thank you! I love you so much!
Post a Comment