- 浏览: 68176 次
- 性别:
文章分类
最新评论
<?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> <!-- Database connection settings --> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql://localhost/hibernate</property> <property name="connection.username">root</property> <property name="connection.password">bjsxt</property> <!-- JDBC connection pool (use the built-in) --> <property name="connection.pool_size">1</property> <!-- SQL dialect --> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <!-- Enable Hibernate's automatic session context management --> <property name="current_session_context_class">thread</property> <!-- Disable the second-level cache --> <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> <!-- Echo all executed SQL to stdout --> <property name="show_sql">true</property> <!-- Drop and re-create the database schema on startup --> <property name="hbm2ddl.auto">update</property> <mapping resource="com/bjsxt/hibernate/Student.hbm.xml"/> <mapping class="com.bjsxt.hibernate.Teacher"/> </session-factory> </hibernate-configuration>
发表评论
-
22.hibernate继承映射joined
2011-12-07 18:14 762person表结构: teacher表结构: studen ... -
21.hibernate继承映射table_per_class
2011-12-07 18:14 1000t_gen_table表结构: person表结构: te ... -
20.hibernate继承映射single_table
2011-11-25 12:17 835单个表: person表结构如下: package co ... -
19.hibernate多对多双向关联
2011-11-25 12:17 731package com.bjsxt.hibernate; ... -
18.hibernate多对多单向关联
2011-11-25 12:17 720package com.bjsxt.hibernate; ... -
17.hibernate一对多,多对一双向关联
2011-11-25 12:17 916package com.bjsxt.hibernate; ... -
16.hibernate一对多单向关联
2011-11-25 12:16 728package com.bjsxt.hibernate; ... -
15.hibernate多对一单向关联
2011-11-24 00:48 803package com.bjsxt.hibernate; ... -
14.hibernate 一对一component(组合),jpa映射
2011-11-24 00:48 1095只存在一个表: husband表结构: package ... -
13.hibernate一对一单向联合主键外键关联,jpa映射
2011-11-24 00:47 1563husband表结构: wife表结构: packag ... -
12.hibernate一对一双向主键关联,jpa映射
2011-11-24 00:47 997husband表结构: wife表结构: pack ... -
11.hibernate一对一双向主键关联,xml映射
2011-11-24 00:46 785student表结构: stuidcard表结构 ... -
10.hibernate一对一单向主键关联,jpa映射
2011-11-23 19:43 1464husband表结构: wife表结构: pac ... -
9.hibernate一对一单向主键关联,xml映射
2011-11-23 19:42 927student表结构: stuidcard表结构 pa ... -
8.hibernate一对一双向外键关联,jpa映射
2011-11-23 19:42 868husband表结构: wife表结构 packa ... -
7.hibernate一对一双向外键关联,xml映射
2011-11-23 19:41 879stuidcard表结构: student表结构: ... -
6.hibernate一对一单向外键关联,jpa映射
2011-11-23 19:40 1674husband表结构: wife表结构 package ... -
5.hibernate一对一单向外键关联,xml映射
2011-11-21 18:25 430stuidcard表结构: student表结构: p ... -
4.hibernate联合主键,jpa映射
2011-11-21 18:17 937package com.bjsxt.hibernate; ... -
3.hibernate联合主键,xml映射
2011-11-21 18:13 968package com.bjsxt.hibernate; ...
相关推荐
hibernate--5.Hibernate配置文件详解
hibernate--5.Hibernate配置文件详解
Hibernate配置文件hibernate.cfg.xml中配置信息详解!
hibernate配置文件 里面提供了连接数据库 数据库使用的方言 是否打印SQL语句 sql语句的格式 以及对象-关系映射文件的地址等
逆向生成hibernate配置文件逆向生成hibernate配置文件逆向生成hibernate配置文件逆向生成hibernate配置文件逆向生成hibernate配置文件逆向生成hibernate配置文件
Hibernate连接SQLite配置步骤: 1、添加SQLite库: 1.1、将两个jar包:com.zy.hibernate.dialect.SQLiteDialect.jar、sqlite-jdbc-3.7.2.jar拷贝到“\WEB-INF\lib”文件夹下; 2、配置hibernate: 2.1、将...
这是Hibernate的配置文件,hibernate.cfg.xml的具体写法,共友友们参考~~谢谢~
hibernate配置,详细的讲了hibernate用的配置文件和方法,可以哦
hibernate配置文件hibernate.cfg.xml的详细解释
高级Hibernate4开发技术:ORM思想,hibernate介绍,hibernate.cfg.xml配置,hbm.xml映射文件详解,主键生成策略使用,PO对象状态及状态的转换分析、一级缓存,Hibernate数据检索技术,Hibernate高级映射技术,...
hibernate链接数据库的详细配置信息,包含各种数据库的链接方式
高级Hibernate4开发技术:ORM思想,hibernate介绍,hibernate.cfg.xml配置,hbm.xml映射文件详解,主键生成策略使用,PO对象状态及状态的转换分析、一级缓存,Hibernate数据检索技术,Hibernate高级映射技术,...
hibernate.cfg.xml hibernate框架的配置文件
struts2+spring+hibernate 配置文件struts2+spring+hibernate 配置文件
在eclipse上通过hibernate工具,将数据库表生成Java类和xml配置文件 总共有2个版本,根据自己的需求使用版本3或者5: 1. hibernate-tools-3.4.0.CR2.jar是修改完成的jar包,直接替换原来的jar包, 重启eclipse即可...
关于hibernate的配置文件hibernate1.cfg.xml
如何使用用myeclipse自动生成hibernate配置文件
用于配置hibernate.cfg.xml和相当的应用,值得看看.........
Hibernate配置文件Hibernate配置文件Hibernate配置文件
使用反射机制修改加载到内存的Hibernate配置文件,使用该方法可以将数据库的配置信息提取到别的路径下。