hibernate4 自动建表 没反映

<bean id="sessionFactory"

class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">

<property name="dataSource">

<ref bean="dataSource" />

</property>

<property name="annotatedClasses">

<list>

<value>pojo.test</value>

</list>

</property>

<property name="hibernateProperties">

<props>

<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>

<prop key="hibernate.show_sql">true</prop>

<prop key="hibernate.dynamic-update">true</prop>

<prop key="hibernate.hbm2ddl.auto">update</prop> 

</props>

</property>

</bean>


慕村225694
浏览 218回答 1
1回答

眼眸繁星

hibernate4不支持hibernateTemplate
打开App,查看更多内容
随时随地看视频慕课网APP