Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-9956 - Enable derby database profile
- Loading branch information
Showing
5 changed files
with
86 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
!mariadb/ | ||
!pgsql/ | ||
!derby/ | ||
./ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
*/ | ||
//databaseProfile { | ||
jdbcDependency 'org.apache.derby:derby:10.10.2.0' | ||
|
||
// testing { | ||
// beforeSuite { | ||
// Test matrixTask = tasks.getByPath( 'matrix_derby' ) as Test | ||
// | ||
// // create the database | ||
// project.ant { | ||
// sql( | ||
// driver: matrixTask.systemProperties.get( 'hibernate.connection.driver_class' ), | ||
// url: 'jdbc:derby:hibernate_orm_test;create=true', | ||
// userid: matrixTask.systemProperties.get( 'hibernate.connection.username' ), | ||
// password: matrixTask.systemProperties.get( 'hibernate.connection.password' ), | ||
// classpath: matrixTask.classpath.asPath, | ||
// 'SELECT 1 FROM SYSIBM.SYSDUMMY1' | ||
// ) | ||
// } | ||
// } | ||
// | ||
//// afterSuite { | ||
//// Test matrixTask = tasks.getByPath( 'matrix_derby' ) as Test | ||
//// | ||
//// // shutdown the database | ||
//// project.ant { | ||
//// sql( | ||
//// driver: matrixTask.systemProperties.get( 'hibernate.connection.driver_class' ), | ||
//// url: 'jdbc:derby:hibernate_orm_test;shutdown=true', | ||
//// userid: matrixTask.systemProperties.get( 'hibernate.connection.username' ), | ||
//// password: matrixTask.systemProperties.get( 'hibernate.connection.password' ), | ||
//// classpath: matrixTask.classpath.asPath | ||
//// ) | ||
//// } | ||
//// } | ||
// } | ||
//} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Hibernate, Relational Persistence for Idiomatic Java | ||
# | ||
# License: GNU Lesser General Public License (LGPL), version 2.1 or later. | ||
# See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | ||
# | ||
|
||
hibernate.dialect org.hibernate.dialect.DerbyTenSevenDialect | ||
hibernate.connection.driver_class org.apache.derby.jdbc.EmbeddedDriver | ||
hibernate.connection.url jdbc:derby:hibernate_orm_test | ||
hibernate.connection.username hibernate_orm_test | ||
hibernate.connection.password hibernate_orm_test | ||
|
||
hibernate.connection.pool_size 5 | ||
|
||
hibernate.show_sql false | ||
hibernate.format_sql true | ||
|
||
hibernate.max_fetch_depth 5 | ||
|
||
hibernate.cache.region_prefix hibernate.test | ||
hibernate.cache.region.factory_class org.hibernate.testing.cache.CachingRegionFactory | ||
|
||
# NOTE: hibernate.jdbc.batch_versioned_data should be set to false when testing with Oracle | ||
hibernate.jdbc.batch_versioned_data true | ||
|
||
javax.persistence.validation.mode=NONE | ||
hibernate.service.allow_crawling=false | ||
hibernate.session.events.log=true |
This file contains 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