Hibernate.cfg.xml文件的配置
来源:互联网 发布:java 多张图片合成pdf 编辑:程序博客网 时间:2024/06/06 09:33
<?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">123456</property>
<!-- enable hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="hibernate.show_sql">true</property>
<property name="format_sql"></property>
</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>
<!-- 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">123456</property>
<!-- enable hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="hibernate.show_sql">true</property>
<property name="format_sql"></property>
<property name="hbm2ddl.auto">update</property>
<!--配置xml文件-->
<mapping source="com.hibernate..."/>
</session-factory>
</hibernate-configuration>
0 0
- hibernate.cfg.xml文件的配置
- Hibernate.cfg.xml文件的配置
- Hibernate.cfg.xml文件的配置
- hibernate.cfg.xml文件的配置问题
- Hibernate.cfg.xml文件的配置
- hibernate+sqlserver2005连接对hibernate.cfg.xml文件的配置
- Hibernate.cfg.xml的配置
- Hibernate.cfg.xml的配置
- hibernate.cfg.xml的配置
- hibernate.cfg.xml的配置
- Hibernate.cfg.xml的配置
- hibernate.cfg.xml的配置
- Hibernate4中hibernate.cfg.xml文件的配置
- Hibernate4中hibernate.cfg.xml文件的配置
- 《转》怎样配置Hibernate.cfg.xml文件
- hibernate.cfg.xml文件配置标签详解
- Hibernate里面的hibernate.cfg.xml配置
- Hibernate的hibernate.cfg.xml配置
- LintCode_数组剔除元素后的乘积
- PHP中正则表达式的用法
- <13> go collection-func
- Leveldb源码分析--11
- 杭电ACM1241(dfs)
- Hibernate.cfg.xml文件的配置
- nyoj--1009--So Easy[Ⅰ](数学)
- 如何在EF中直接运行SQL命令
- datagrid参数解读
- Android开发之ViewPager使用详解(一)
- Leveldb源码分析--12
- Linux 根据当前日期获取上个月的第一天和最后一天
- [LeetCode] Maximum Subarray 解题思路
- Leveldb源码分析--13