关于hibernate.cfg.xm
来源:互联网 发布:远程授课软件 编辑:程序博客网 时间:2024/06/05 11:24
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/system</property>
<property name="hibernate.connection.username">mysql</property>
<property name="hibernate.connection.password">mysql</property>
数据库的相关配置,主要有数据库类型,数据库表名称,数据库帐号,密码
<!-- SQL dialect数据库方言 -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
这个是表默认的,无需修改
<!-- Echo all executed SQL to stdout自动打印出sql语句 -->
<property name="show_sql">true</property>
可以控制控制台是否打印sql语句
<!-- Drop and re-create the database schema on startup自动创建数据库表 -->
<property name="hbm2ddl.auto">update</property>
这个是设置hibernate自动创建数据库表
<!-- 映射文件列表 -->
<mapping resource="cn/edu/sjzc/model/Student.hbm.xml"/>
<mapping resource="cn/edu/sjzc/model/Teacher.hbm.xml"/>
<mapping resource="cn/edu/sjzc/model/Manager.hbm.xml"/>
<mapping resource="cn/edu/sjzc/model/Message.hbm.xml"/>
<mapping resource="cn/edu/sjzc/model/Project.hbm.xml"/>
<mapping resource="cn/edu/sjzc/model/Group.hbm.xml"/>
相应的bean的映射文件,如果是ssh框架的话,一般都是依赖注入,没有get方法
- 关于hibernate.cfg.xm
- 关于hibernate.cfg.xml
- 关于hibernate.properties和hibernate.cfg.xml的分析
- 关于AndroidManifest.xm
- 关于hibernate.cfg.xml配置文件的几点说明
- 关于org/hibernate/cfg/HbmBinder$SecondPass的问题
- 关于hibernate.cfg.xml头文件DTD的引入
- 关于xen的杂七杂八(xm)
- hibernate.cfg.xml
- hibernate.cfg.xml配置
- hibernate.cfg.xml
- hibernate.cfg.xml 配置文件
- hibernate-cfg.xml
- hibernate.cfg配置
- hibernate.cfg.xml
- hibernate.cfg.com 配置
- hibernate.cfg.xml模板
- hibernate.cfg.xml
- Swift网络开发-在DownloadTask完成前获取Resposne
- MAC搜不到某些无线信号
- N-Queens && N-Queens II
- 需求流
- How to Deliver Proposals and Presentations
- 关于hibernate.cfg.xm
- Roman to Integer ——解题报告
- javascript表单的正则表达式
- 睡眠长短影响健康 多方面提高睡眠…
- Web API 实战之 统一的请求验证
- HTML5 LocalStorage 本地存储
- Loadrunner 9.5/11 java vuser环境配置问题(已解决)
- ACdream 1056 Vitaly and Strings
- 分享一篇GDB调试方法