def useP6Spy = false // use this to enable p6spy logging

dataSource {
  pooled = true
  driverClassName = (useP6Spy) ? "com.p6spy.engine.spy.P6SpyDriver" : "org.postgis.DriverWrapper"
  username = "postgres"
  password = "postgres"
//  dialect = "org.ossim.postgis.PostGISDialectNG"
  dialect = org.hibernatespatial.postgis.PostgisDialect

//  loggingSql = true
}
hibernate {
  cache.use_second_level_cache = true
  cache.use_query_cache = true
  cache.provider_class = 'org.hibernate.cache.EhCacheProvider'
  jdbc.batch_size = 20
}
// environment specific settings
environments {
  development {
    dataSource {
      dbCreate = "create-drop" // one of 'create', 'create-drop','update'
      //dbCreate = "update"
      url = "jdbc:postgresql_postGIS:omardb-dev"
    }
  }
  test {
    dataSource {
      dbCreate = "update"
      //url = "jdbc:postgresql_postGIS:omardb-2.0-test"
      url = "jdbc:postgresql_postGIS:omardb-test"
    }
  }
  production {
    dataSource {
      dbCreate = "update"
      url = "jdbc:postgresql_postGIS:omardb-prod"
    }
  }
}

def useP6Spy = false // use this to enable p6spy logging

dataSource {
  pooled = true
  driverClassName = (useP6Spy) ? "com.p6spy.engine.spy.P6SpyDriver" : "org.postgis.DriverWrapper"
  username = "postgres"
  password = "postgres"
//  dialect = "org.ossim.postgis.PostGISDialectNG"
  dialect = org.hibernatespatial.postgis.PostgisDialect

//  loggingSql = true
}
hibernate {
  cache.use_second_level_cache = true
  cache.use_query_cache = true
  cache.provider_class = 'org.hibernate.cache.EhCacheProvider'
  jdbc.batch_size = 20
}
// environment specific settings
environments {
  development {
    dataSource {
      dbCreate = "create-drop" // one of 'create', 'create-drop','update'
      //dbCreate = "update"
      url = "jdbc:postgresql_postGIS:omardb-2.0-dev"
    }
  }
  test {
    dataSource {
      dbCreate = "update"
      //url = "jdbc:postgresql_postGIS:omardb-2.0-test"
      url = "jdbc:postgresql_postGIS:omardb-2.0-test"
    }
  }
  production {
    dataSource {
      dbCreate = "update"
      url = "jdbc:postgresql_postGIS:omardb-2.0-prod"
    }
  }
}

Put the names back temporarily
Put the names back temporarily


git-svn-id: 3b4b84547dfdca3638583abe8533e8c649d4f491@17510 b630af17-092b-0410-afba-a002956477a4
