hibernate-orm/databases/derby/matrix.gradle

43 lines
1.4 KiB
Groovy
Raw Permalink Normal View History

/*
* 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.11.1.1'
// 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
//// )
//// }
//// }
// }
//}