Hibernate配置
来源:互联网 发布:整型数据占几个字节 编辑:程序博客网 时间:2024/06/07 09:34
<?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">
<!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">
oracle.jdbc.driver.OracleDriver
</property>
<property name="hibernate.connection.url">
jdbc:oracle:thin:@192.168.0.150:1521:orcl
</property>
<property name="hibernate.connection.username">
oaec
</property>
<property name="hibernate.connection.password">
oaec
</property>
<property name="hibernate.dialect">
org.hibernate.dialect.Oracle10gDialect
</property>
<property name="hibernate.dialect">
org.hibernate.dialect.HSQLDialect
</property>
<mapping resource="com/oracleoaec/hibernate/User.hbm.xml" />
</session-factory-->
<session-factory>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<!-- mysql数据库驱动 -->
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<!-- mysql数据库名称 -->
<property name="hibernate.connection.url">
jdbc:mysql://localhost:3306/flight
</property>
<!-- 数据库的登陆用户名 -->
<property name="hibernate.connection.username">
root
</property>
<!-- 数据库的登陆密码 -->
<property name="hibernate.connection.password"></property>
<!-- 方言:为每一种数据库提供适配器,方便转换 -->
<property name="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</property>
<mapping resource="com/oracleoaec/hibernate/User.hbm.xml"/>
</session-factory>
</hibernate-configuration>
阅读全文
1 0
- hibernate-hibernate的配置
- 【Hibernate】2.Hibernate配置
- Hibernate 配置!
- Hibernate配置
- Hibernate配置
- Hibernate 配置
- Hibernate配置
- Hibernate配置
- Hibernate配置
- Hibernate配置
- hibernate 配置
- Hibernate 配置
- Hibernate 配置
- hibernate配置
- 配置HIbernate
- Hibernate 配置
- Hibernate配置
- Hibernate配置
- UMG Spin Box 和 Text Box 限定输入为 Int
- 欢迎使用CSDN-markdown编辑器
- 批量kill进程
- 性能测试知多少---测试环境搭建
- ICEM划分网格实例——六角形螺栓
- Hibernate配置
- ckeditor 学习笔记【1】初始化
- 爬虫的定向爬取
- JQuery学习笔记(一)
- 《深入理解java虚拟机》读书笔记四 【垃圾收集算法和垃圾收集器】
- struts2工作原理
- android N 导入批量联系人 dialer崩溃
- JAVA 高并发
- 解决double类型相减有误差的问题