xml配置文件:
<hibernate-mapping>
<class name="com.bjsxt.hibernate.Student" dynamic-update="true">
........
</class>
</hibernate-mapping>
@Test
public void testSchemaExport() {
new SchemaExport(new AnnotationConfiguration().configure()).create(false, true);
}
相当于xml配置中的:
<property name="hbm2ddl.auto">update</property>