hibernate.cfg.xml配置
来源:互联网 发布:php资产管理系统源码 编辑:程序博客网 时间:2024/05/16 12:45
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- 配置数据源 -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql:///poost</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<!-- 自动选择连接数据库类型 -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- 显示sql语句 -->
<property name="hibernate.show_sql">true</property>
<!-- 格式化sql语句 -->
<property name="hibernate.format_sql">true</property>
<!-- 自动创建更新表结构 -->
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping resource="com/bd/dao/Emp.hbm.xml"/>
<mapping class="com.bd.model.Emp"/>
</session-factory>
</hibernate-configuration>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- 配置数据源 -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql:///poost</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<!-- 自动选择连接数据库类型 -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- 显示sql语句 -->
<property name="hibernate.show_sql">true</property>
<!-- 格式化sql语句 -->
<property name="hibernate.format_sql">true</property>
<!-- 自动创建更新表结构 -->
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping resource="com/bd/dao/Emp.hbm.xml"/>
<mapping class="com.bd.model.Emp"/>
</session-factory>
</hibernate-configuration>
阅读全文
0 0
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- Hibernate.cfg.xml 配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- 配置hibernate.cfg.xml
- hibernate.cfg.xml配置
- hibernate.cfg.xml配置
- hibernate.cfg.xml 配置
- hibernate hibernate.cfg.xml配置
- hibernate.cfg.xml配置总结
- Hibernate.cfg.xml的配置
- Hibernate.cfg.xml的配置
- hibernate.cfg.xml基本配置
- IntelliJ IDEA 拉取SVN maven 多模块项目 部署tomcat 详细图解!
- Qt项目名称修改方法(简单粗暴笨方法)
- Qt:Qt导出Excel表格
- 动态方法调用 在Struts2中动态方法调用有三种方式,动态方法调用就是为了解决一个Action对应多个请求的处理,以免Action太多 第一种方式:指定method属性 这种方式我们前面已经用到过
- 欢迎使用CSDN-markdown编辑器
- hibernate.cfg.xml配置
- 注解原理
- 简单线性电源 20170617 周六
- 动态规划实例(一):最长递增子序列(LIS)
- Sqoop配置
- 影梭工具
- Linux下串口通信详解(上)打开串口和串口初始化详解
- Unity3D相机切换效果
- K近邻算法(K-Nearest Neighbor)