spring和hibernate整合

class="org.apache.commons.dbcp.BasicDataSource">
value="com.mysql.jdbc.Driver">





class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

<property name="dataSource">
        <ref bean="dataSource" />
    </property>
    <property name="hibernateProperties">
        <props>
            <prop key="hibernate.dialect">
                org.hibernate.dialect.MySQLDialect
            </prop>
            <prop key="hibernate.hbm2ddl.auto">
                update
            </prop>
            <prop key="hibernate.show_sql">
                true
            </prop>
        </props>
    </property>
    <property name="mappingResources">
        <list>
            <value>com/lcw/user/domain/Users.hbm.xml</value></list>
    </property>

    </bean>

在spring和hibernate整合中我这样配置beans.xml文件,但是我测试的时候,没用事务提交,数据确插进了数据库,这个是怎么回事?

这个需要你看看源码了。