Hibernate自动建表



"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">






com.mysql.jdbc.Driver

jdbc:mysql://localhost:3306/hibernate_homework

root

root


org.hibernate.dialect.MySQLDialect

true

create






在Hibernate核心配置文件hibernate.cdf.xml中session-factory

create

你可能感兴趣的:(Hibernate自动建表)