Skip to content

Instantly share code, notes, and snippets.

@sergiomichels
Last active December 14, 2015 22:19
Show Gist options
  • Select an option

  • Save sergiomichels/5157584 to your computer and use it in GitHub Desktop.

Select an option

Save sergiomichels/5157584 to your computer and use it in GitHub Desktop.
Delayed Session Factory for Oracle
dataSource {
pooled = false
driverClassName = "oracle.jdbc.OracleDriver"
//Add the Dialect for your database
dialect = org.hibernate.dialect.Oracle10gDialect
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = false
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
//Set jdbc metadata to false to not open a session
temp.use_jdbc_metadata_defaults = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment