- 浏览: 111707 次
- 性别:
- 来自: 上海
文章分类
最新评论
<?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="connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="connection.url">jdbc:sqlserver://localhost:1433;DatabaseName=epai</property>
<property name="connection.username">sa</property>
<property name="connection.password">accp</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.current_session_context_class">thread</property>
<!--
<property name="hibernate.current_session_context_class">jta</property>
-->
<mapping resource="org/epai/entity/Users.hbm.xml"/>
<mapping resource="org/epai/entity/Goods.hbm.xml"/>
<mapping resource="org/epai/entity/Bid.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>
<property name="connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="connection.url">jdbc:sqlserver://localhost:1433;DatabaseName=epai</property>
<property name="connection.username">sa</property>
<property name="connection.password">accp</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.current_session_context_class">thread</property>
<!--
<property name="hibernate.current_session_context_class">jta</property>
-->
<mapping resource="org/epai/entity/Users.hbm.xml"/>
<mapping resource="org/epai/entity/Goods.hbm.xml"/>
<mapping resource="org/epai/entity/Bid.hbm.xml"/>
</session-factory>
</hibernate-configuration>
发表评论
-
hibernate基础-初步
2009-11-03 15:26 610类拟框架:Apache OJB,JDO,Toplink,EJB ... -
hibernate基础-基本映谢标签和属性
2009-11-03 15:35 649hibernate基本映射 实体类------>表 实体 ... -
hibernate基础-映射关系(多对一I一对一)
2009-11-03 15:53 482多对一关联映射 many-to-one关联映射本质: * ... -
hibernate基础-映射关系(一对多I多对多).
2009-11-03 16:04 576一对多关联映射(one-to-many) 一对多关联映射利用了 ... -
hiberante基础-继承映射
2009-11-03 16:15 735继承映射的三种策略: * 单表继承,每棵类继承树使用一个表 ... -
hibernate基础-其他映射
2009-11-03 16:17 629set、list、array、map Collection: ... -
hibernate基础-自关联映射
2009-11-03 16:19 7241 class Node: private int id;pr ... -
hibernate基础-Component+[联合]映象
2009-11-03 16:22 490Component映射(值对象映射) 在hibernate中, ... -
hibernate基础-lazy策略
2009-11-03 16:33 769lazy策略可以使用在: * <class> ... -
hibernate基础-fetch抓取
2009-11-03 16:34 576抓取策略(单端代理的批量抓取) 1 保持默认,也就是fetch ... -
hibernate基础-Session_Flush
2009-11-03 16:37 674session flush测试: session ... -
hibernate基础-悲观[乐观]锁
2009-11-03 16:40 474悲观锁 悲观锁的实现,通常依赖于数据库机制,在整个过程中将数据 ... -
hiberante基出-缓存
2009-11-03 16:49 481一级缓存 * 一级缓存是缓存实体对象的 * 如果管理一 ... -
hibernate基础-HQL
2009-11-03 17:14 522在hql中关键字不区分大小写,但是属性和类名区分大不写简单属性 ... -
hibernate基础-HibernateTemplate
2009-11-03 17:20 5331 ,void delete ( Object entity ... -
[导入]Hibernate 深入研究之 Criteria
2009-11-03 17:35 554文章来源:http://www.cnblogs.com/ ... -
DetachedCriteria
2009-11-03 17:41 645org.hibernate.criterion.Detache ... -
Restrictions
2009-11-03 17:46 708HQL运算符 ... -
由映射文件生成表
2009-11-03 17:57 537import org.hibernate.cfg.Confi ... -
JNDI连接池
2009-11-29 21:19 700管理连接对象 Modle:biz,dao,entity 数据源 ...
相关推荐
由于spring对hibernate配置文件hibernate.cfg.xml的集成相当好,可以在项目中放弃hibernate.cfg.xml文件,介绍mappingLocations、mappingDirectoryLocations与mappingJarLocations的用法和区别
hibernate.cfg.xml文件详细解释收集的一个比较好的hibernate.cfg.xml文件解释
Hibernate配置文件hibernate.cfg.xml中配置信息详解!
这是Hibernate的配置文件,hibernate.cfg.xml的具体写法,共友友们参考~~谢谢~
Hibernate.cfg.xml配置总结
高级Hibernate4开发技术:ORM思想,hibernate介绍,hibernate.cfg.xml配置,hbm.xml映射文件详解,主键生成策略使用,PO对象状态及状态的转换分析、一级缓存,Hibernate数据检索技术,Hibernate高级映射技术,...
hibernate配置文件hibernate.cfg.xml的详细解释
hibernate.cfg.xml中各节点的所有属性值,取自hibernate官网,纯天然无污染。原装!
(hibernate调用C3p0)hibernate.cfg.xml
高级Hibernate4开发技术:ORM思想,hibernate介绍,hibernate.cfg.xml配置,hbm.xml映射文件详解,主键生成策略使用,PO对象状态及状态的转换分析、一级缓存,Hibernate数据检索技术,Hibernate高级映射技术,...
Hibernate.cfg.xml 配置信息详解 Hibernate.cfg.xml 是 Hibernate 框架中的一份核心配置文件,用于配置 Hibernate 的行为和性能。该文件中包含了多个配置属性,用于控制 Hibernate 的各种功能和特性。本文将对 ...