hibernate中配置oracle数据库,【SSH】hibernate中Oracle数据库配置文件详解

hibernate的属性设置

## hibernate.dialect org.hibernate.dialect.OracleDialect

hibernate.dialect org.hibernate.dialect.Oracle10gDialect

hibernate的连接设置

hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver

## hibernate.connection.url jdbc\:oracle\:thin\:@10.176.33.24\:1521\:ora11gbk

hibernate.connection.url jdbc\:oracle\:thin\:@127.0.0.1\:1521\:ORCL

数据库的用户名和密码

hibernate.connection.username FrameworkTest

hibernate.connection.password FrameworkTest

## hibernate.connection.username musickr

## hibernate.connection.password musickr

set the maximum depth of the outer join fetch tree

hibernate.format_sql false

hibernate连接池的个数

hibernate.connection.pool_size 1

hibernate.proxool.pool_alias pool1

hibernate.testsql=select count(*) from dual

hibernate.jdbc.use_streams_for_binary true

## add comments to the generated SQL

hibernate.use_sql_comments true

## set the maximum depth of the outer join fetch tree

hibernate.max_fetch_depth 1

hibernate.jdbc.batch_versioned_data true

hibernate.jdbc.batch_size 28

hibernate.active = 8

hibernate.minidle = 8

hibernate.maxidle = 8

hibernate.maxwait = -1

hibernate.checkAfterUsed=true

c3p0的设置。

c3p0.acquireIncrement=3

c3p0.idleConnectionTextPeriod=900

c3p0.minPoolSize=2

c3p0.maxPoolSize=50

c3p0.maxStatements=100

c3p0.numHelperThreads=10

c3p0.maxIdleTime=600

c3p0.initialPoolSize=0

hibernate.cache.use_query_cache=true

hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider

base.package = com.hacmp

hibernate映射包,用于spring扫描用。

hibernate.module.pkg=classpath\:com/model/**/*.hbm.xml

spring.security.mapping.directory=classpath\:com/model/**/*.hbm.xml

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值