-
Notifications
You must be signed in to change notification settings - Fork 361
DATAJDBC-257 - Adds DB2 support. … #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Db2Dialect added in order to support DB2. Added test configuration files. Adapted some tests to make them properly work with DB2 QueryAnnotationIntegrationTests converted into an Hsqldb only test since it is next to impossible to make it work across databases since it heavily depends on database and driver specifics. Removed license acceptance file from the repository in order to not accept a license in the name of someone forking the repository. For the CI build an appropriate file gets created on the fly.
spring-data-jdbc/pom.xml
Outdated
@@ -185,6 +185,25 @@ | |||
<version>${mssql.version}</version> | |||
<scope>test</scope> | |||
</dependency> | |||
<!-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this block?
import org.testcontainers.containers.Db2Container; | ||
|
||
/** | ||
* {@link DataSource} setup for HSQL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: DB2
@@ -0,0 +1,93 @@ | |||
/* | |||
* Copyright 2019-2020 the original author or authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Inception year of this file is 2020.
@@ -0,0 +1,59 @@ | |||
/* | |||
* Copyright 2017-2020 the original author or authors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: 2020 only
Removed superfluous commented code and imports. Fixed year in copyright blocks. Improved Javadoc comments.
@mp911de your turn again. |
Db2Dialect added in order to support DB2. Added test configuration files. Adapted some tests to make them properly work with DB2 QueryAnnotationIntegrationTests converted into an Hsqldb only test since it is next to impossible to make it work across databases since it heavily depends on database and driver specifics. Removed license acceptance file from the repository in order to not accept a license in the name of someone forking the repository. For the CI build an appropriate file gets created on the fly. Original pull request: #213.
Move container initialization from static initializer into createDataSource() to not trigger container start when loading the class. Add TestExecutionListener to ignore tests if the license for a container was not accepted. Add Awaitility to delay test execution until the database is ready so we avoid strange failures due to a delayed container startup. Fix generics, since tags, author tags. Reformat code. Original pull request: #213.
That's merged and polished now. |
Move container initialization from static initializer into createDataSource() to not trigger container start when loading the class. Add TestExecutionListener to ignore tests if the license for a container was not accepted. Add Awaitility to delay test execution until the database is ready so we avoid strange failures due to a delayed container startup. Fix generics, since tags, author tags. Reformat code. Original pull request: #213.
Consistently apply summing of updated rows. Tweak copyright years in license header to reflect file inception year. Original pull request: #213.
Db2Dialect added in order to support DB2.
Added test configuration files.
Adapted some tests to make them properly work with DB2
QueryAnnotationIntegrationTests converted into an Hsqldb only test since it is next to impossible to make it work across databases since it heavily depends on database and driver specifics.
Removed license acceptance file from the repository in order to not accept a license in the name of someone forking the repository.
For the CI build an appropriate file gets created on the fly.
Issue: DATAJDBC-257