Skip to content

Instantly share code, notes, and snippets.

@mussatto
Created August 21, 2013 14:14
Show Gist options
  • Save mussatto/6294993 to your computer and use it in GitHub Desktop.
Save mussatto/6294993 to your computer and use it in GitHub Desktop.
default datasource for dev (H2DB)
dataSource {
pooled = true
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = true
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
search.default.directory_provider = 'filesystem'
hibernate.search.default.indexBase = 'indexes'
}
environments {
development {
dataSource {
pooled = true
driverClassName = "org.h2.Driver"
username = "sa"
password = ""
dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment