
采用
<prop key="hibernate.hbm2ddl.auto">create</prop>
简单来说,
validate: validate the schema, makes no changes to the database.update: update the schema.create: creates the schema, destroying previous data.create-drop: drop the schema at the end of the session.auto : Automatically validates or exports schema DDL to the database when the SessionFactory is created
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)