20.1.3. 属性(Properties)
可以通过如下方式指定数据库属性:
通过
-D
系统参数 在
hibernate.properties
文件中位于一个其它名字的properties文件中,然后用
—properties
参数指定
所需的参数包括:
表 20.3. SchemaExport 连接属性
属性名 | 说明 |
---|---|
hibernate.connection.driver_class | jdbc driver class |
hibernate.connection.url | jdbc url |
hibernate.connection.username | database user |
hibernate.connection.password | user password |
hibernate.dialect | 方言(dialect) |
当前内容版权归 wizardforcel 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 wizardforcel .