摘要: hibrenate配置中有一个“hbm2ddl.auto”的属性,它表示hibernate数据表自动创建的策略 1.create:根据*.hbm.xml配置来生成数据表,每次运行都会删除上次生成的表,即使没有任何改变 2.create-drop:生成数据表,每次SessionFactory关闭时删除 阅读全文
posted @ 2016-07-06 20:14 spacexyz 阅读(165) 评论(0) 推荐(0) 编辑