Hibernate.cfg.xml
来源:互联网 发布:拼音生字软件 编辑:程序博客网 时间:2024/06/05 01:58
<?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>
<!-- The database dialect -->
<property name="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</property>
<!-- The database connection URL -->
<property name="hibernate.connection.url">
jdbc:mysql://localhost:3306/db_hr
</property>
<!-- The database username -->
<property name="hibernate.connection.username">root</property>
<!-- THe database password -->
<property name="hibernate.connection.password">123456</property>
<!-- The database driver class -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<!--Output all SQL statements to the console (输出SQL语句到控制台) -->
<property name="show_sql">true</property>
<!-- In the log and the console print out more beautiful SQL (格式化打印SQL语句) -->
<property name="format_sql">true</property>
<!-- -->
<mapping resource="com/hst/po/Employee.hbm.xml" />
</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>
<!-- The database dialect -->
<property name="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</property>
<!-- The database connection URL -->
<property name="hibernate.connection.url">
jdbc:mysql://localhost:3306/db_hr
</property>
<!-- The database username -->
<property name="hibernate.connection.username">root</property>
<!-- THe database password -->
<property name="hibernate.connection.password">123456</property>
<!-- The database driver class -->
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<!--Output all SQL statements to the console (输出SQL语句到控制台) -->
<property name="show_sql">true</property>
<!-- In the log and the console print out more beautiful SQL (格式化打印SQL语句) -->
<property name="format_sql">true</property>
<!-- -->
<mapping resource="com/hst/po/Employee.hbm.xml" />
</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.cfg.xml
- hibernate.cfg.xml配置
- hibernate.cfg.xml
- hibernate.cfg.xml
- hibernate.cfg.xml配置文件
- shape为textView等设置圆角
- 怎么才能算是一个重要的员工
- java 过滤 emoji 表情
- 部署IIS时,提示访问.NETFRAMEWORK文件时,拒绝访问的解决方法
- 小知识eclipse启动tomcat时遇到超时45秒的问题
- Hibernate.cfg.xml
- linux分区详解
- servlet_08 读取表单的所有参数
- [转自OCM白大师]ORACLE空间管理实验8:数据块格式分析--DUMP结合BBED
- spring 多数据源 ,mybatis和hibernet版本
- HDU1069——Monkey and Banana(动态规划)
- 优驾行easy
- Ubuntu14.04 + NVIDIA8.0 + cuda + cudnn + opencv 3 + matlab
- exynos4412内存分析