hibernate.hbm2ddl.auto与import.sql
设hibernate.hbm2ddl.auto为update/create-drop/create后,在classpath中扔一个/import.sql进去,hibernate启动时就会执行import.sql的内容。
hibernate.hbm2ddl.auto,这个参数的作用主要用于:自动创建|更新|验证数据库表结构。下面是这个参数的值说明:
Written on 2009/02/10 by MAN2
hibernate.hbm2ddl.auto与import.sql
Labels:
Hibernate
0 Comments
Subscribe to:
Post Comments (RSS)
0 Responses to "hibernate.hbm2ddl.auto与import.sql"
Post a Comment