Last active
December 14, 2015 22:19
-
-
Save sergiomichels/5157584 to your computer and use it in GitHub Desktop.
Delayed Session Factory for Oracle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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