Skip to content

H2 version 2 support#369

Merged
gilleain merged 10 commits intomainfrom
feature/MORF-50-feb-26-h2-v2
Mar 2, 2026
Merged

H2 version 2 support#369
gilleain merged 10 commits intomainfrom
feature/MORF-50-feb-26-h2-v2

Conversation

@jonknight73
Copy link
Copy Markdown
Contributor

Add support for H2 version 2 in morf-h2v2 module.

Comment thread pom.xml Outdated
Comment thread morf-testsupport/pom.xml
Comment thread morf-testsupport/pom.xml
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 2, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
28.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@gilleain gilleain merged commit 81d26ff into main Mar 2, 2026
2 of 3 checks passed
// xaDataSource.setURL(jdbcUrl);
// xaDataSource.setUser(username);
// xaDataSource.setPassword(password);
// return xaDataSource;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove commented out code and a WEB reference.

* limitations under the License.
*/

package org.alfasoftware.morf.jdbc.h2;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should packaging be h2v2 for clarity?

/**
* Tests for DatabaseType.H2
*
* @author Copyright (c) Alfa Financial Software 2014
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copyright dates should be 2026

<title>Package details</title>
</head>
<body>
<p>Implementations specific to H2 databases.</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specific to H2 version 2.
And indicate that morf-h2 is specific to H2 version 1.

Comment thread morf-h2v2/.gitignore
@@ -0,0 +1 @@
/ivy.xml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really relevant anymore

Comment thread morf-h2v2/pom.xml
</parent>

<name>Morf - H2 version 2</name>
<description>Morf is a library for cross-platform evolutionary relational database mechanics, database access and database imaging/cloning.</description>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that these descriptions should contain something specific to the sub-project (though I recognise currently none of the others do)

Comment thread morf-h2v2/pom.xml
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>2.3.232</version>
Copy link
Copy Markdown
Contributor

@harrisric harrisric Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the latest version 2.4.240?
Looks to have a number of fixes: https://github.com/h2database/h2database/releases/tag/version-2.4.240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants