Hibernate基础(一)
2016-01-19 11:25
197 查看
Hibernate是ORM开源组件
源码:http://sourceforge.net/projects/hibernate/
1.Hibernate的配置文件.
默认配置文件: hibernate.cfg.xml
前期准备文件:hibernate.properties
其两个文件的开源项目文件夹的路径:hibernate-release-x.x.x\project\etc
hibernate.cfg.xml文件的源码
源码:http://sourceforge.net/projects/hibernate/
1.Hibernate的配置文件.
默认配置文件: hibernate.cfg.xml
前期准备文件:hibernate.properties
其两个文件的开源项目文件夹的路径:hibernate-release-x.x.x\project\etc
hibernate.cfg.xml文件的源码
<!-- ~ Hibernate, Relational Persistence for Idiomatic Java ~ ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later. ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. --> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory name="foo"> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql:///test</property> <property name="connection.username">xx</property> <property name="connection.password">xx</property> </session-factory> </hibernate-configuration>
相关文章推荐
- 红包算法1
- NULL的用法
- 关于struts中的全选与复选问题
- webview 上 postUrl 发送参数过程中数据丢失或错误 的问题
- ExtJs combobox支持模糊匹配
- linux 重定向 标准错误与标准输出到同一文件
- FastReport 动态加载图片
- hello
- 基于libRTMP的流媒体直播之 AAC、H264 推送
- 横竖屏切换问题
- 巧用位操作符之——^异或运算符
- js代码获取Cesium的czml数据
- Spring MVC 4 学习5: 配置数据源(proxool连接池)及使用例子
- 每日一算法6--判断一个数字是奇数还是偶数
- 在线考试系统----随机抽题的方法(ASP,PHP,JSP,SQL)
- 8.View the Exhibit and examine the structure of the CUSTOMERS table.
- PHP扩展迁移为兼容PHP7记录
- PHP 获取图片中的器材信息
- 位运算小结(按位与、按位或、按位异或、取反、左移、右移)
- 用 Webgoat 撬动地球,看安全测试的引路石!