Hibernate连接Oracle10g之hibernate.cfg.xml
2011-01-31 00:00
337 查看
<?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">oracle.jdbc.driver.OracleDriver</property> <property name="connection.url">jdbc:oracle:thin:@localhost:1521:ORCL</property> <property name="connection.username">scott</property> <property name="connection.password">7788966</property> <!-- JDBC connection pool (use the built-in) --> <property name="connection.pool_size">1</property> <!-- SQL dialect --> <property name="dialect">org.hibernate.dialect.Oracle10gDialect</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">create</property> <mapping resource="vo/Student.hbm.xml"/> </session-factory> </hibernate-configuration>
相关文章推荐
- hibernate.cfg.xml文件连接mySql、Oracle、SqlServer配置
- hibernate学习:hibernate.cfg.xml文件中与数据库的两种连接
- hibernate+sqlserver2005连接对hibernate.cfg.xml文件的配置
- 连接Oracle数据库的Hibernate.cfg.xml
- Hibernate连接Oracle配置文件-hibernate.cfg.xml
- 连接MySQL数据库的Hibernate.cfg.xml
- Hibernate连接SQL Server2008时候hibernate.cfg.xml和table.hbm.xml文件的配置详情
- hibernate.cfg.xml配置文件,连接oracle数据库和mysql 数据库
- hibernate中连接SQLServer2008的配置文件hibernate.cfg.xml
- 连接Oracle数据库的Hibernate.cfg.xml
- Hibernate连接MySql数据库时 Hibernate.cfg.xml配置文件
- hibernate.cfg.xml连接Sql2000参考代码
- Hibernate.cfg.xml配置Hibernate连接数据库和对应的数据表
- Hibernate连接Oracle数据库的 Hibernate.cfg.xml
- hibernate.cfg.xml文件连接mySql、Oracle、SqlServer配置
- hibernate.cfg.xml配置oracle9i连接
- hibernate.cfg.xml配置Mysql连接字符串时提示错误
- Hibernate.cfg.xml 配置连接MySQL数据库
- hibernate学习(一)hibernate.cfg.xml文件连接mySql、Oracle、SqlServer配置
- hibernate.cfg.xml文件连接mySql、Oracle、SqlServer配置