无聊人士

搬家==》www.soapui.cn

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  32 随笔 :: 0 文章 :: 60 评论 :: 0 Trackbacks
笔记一下:

设hibernate.hbm2ddl.auto为update/create-drop/create后,在classpath中扔一个/import.sql进去,hibernate启动时就会执行import.sql的内容。

11860 [main] INFO  org.hibernate.tool.hbm2ddl.SchemaExport  - Running hbm2ddl schema export
11860 [main] DEBUG org.hibernate.tool.hbm2ddl.SchemaExport  - import file not found: /import.sql
11875 [main] INFO  org.hibernate.tool.hbm2ddl.SchemaExport  - exporting generated schema to database
posted on 2006-10-31 00:32 mmwy 阅读(5736) 评论(2)  编辑  收藏 所属分类: Hibernate

评论

# re: hibernate.hbm2ddl.auto与import.sql[未登录] 2011-12-04 16:41 aaa
在classpath中扔一个/import.sql进 是什么意思啊
我的qq1450751458  回复  更多评论
  

# re: hibernate.hbm2ddl.auto与import.sql 2012-11-19 01:59 ww
在classpath中扔一个/import.sql进 是什么意思啊

我的qq 1078435142
  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: