Skip to content

Commit 1fa4797

Browse files
authored
Add support for Hibernate Spatial (#502)
Closes #233
1 parent 8bd6b11 commit 1fa4797

File tree

10 files changed

+94
-0
lines changed

10 files changed

+94
-0
lines changed

metadata/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@
293293
"allowed-packages" : [ "org.hibernate", "jakarta", "org.h2.Driver", "org.postgresql.Driver", "com.mysql.cj.jdbc.Driver", "org.hsqldb.jdbc.JDBCDriver", "com.microsoft.sqlserver.jdbc.SQLServerDriver", "oracle.jdbc.driver.OracleDriver", "org.mariadb.jdbc.Driver" ],
294294
"directory" : "org.hibernate/hibernate-core",
295295
"module" : "org.hibernate:hibernate-core"
296+
}, {
297+
"allowed-packages" : [ "org.hibernate" ],
298+
"directory" : "org.hibernate/hibernate-spatial",
299+
"module" : "org.hibernate:hibernate-spatial"
296300
}, {
297301
"allowed-packages" : [ "org.jboss" ],
298302
"directory" : "org.jboss.logging/jboss-logging",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
"reflect-config.json"
3+
]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"name": "org.hibernate.spatial.HSMessageLogger_$logger",
4+
"condition": {
5+
"typeReachable": "org.hibernate.spatial.integration.SpatialInitializer"
6+
},
7+
"methods": [
8+
{
9+
"name": "<init>",
10+
"parameterTypes": [
11+
"org.jboss.logging.Logger"
12+
]
13+
}
14+
]
15+
}
16+
]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[
2+
{
3+
"latest": true,
4+
"metadata-version": "6.5.0.Final",
5+
"module": "org.hibernate:hibernate-spatial",
6+
"tested-versions": [
7+
"6.5.0.Final"
8+
]
9+
}
10+
]

tests/src/index.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,12 @@
478478
"name" : "org.hibernate:hibernate-core",
479479
"versions" : [ "5.6.14.Final" ]
480480
} ]
481+
}, {
482+
"test-project-path" : "org.hibernate/hibernate-spatial/6.5.0.Final",
483+
"libraries" : [ {
484+
"name" : "org.hibernate:hibernate-spatial",
485+
"versions" : [ "6.5.0.Final" ]
486+
} ]
481487
}, {
482488
"test-project-path" : "org.jboss.logging/jboss-logging/3.5.0.Final",
483489
"libraries" : [ {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gradlew.bat
2+
gradlew
3+
gradle/
4+
build/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
8+
plugins {
9+
id "org.graalvm.internal.tck"
10+
}
11+
12+
String libraryVersion = tck.testedLibraryVersion.get()
13+
14+
dependencies {
15+
testImplementation "org.hibernate:hibernate-spatial:$libraryVersion"
16+
testImplementation 'org.assertj:assertj-core:3.22.0'
17+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
library.version = 6.5.0.Final
2+
metadata.dir = org.hibernate/hibernate-spatial/6.5.0.Final/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pluginManagement {
2+
def tckPath = Objects.requireNonNullElse(
3+
System.getenv("GVM_TCK_TCKDIR"),
4+
"../../../../tck-build-logic"
5+
)
6+
includeBuild(tckPath)
7+
}
8+
9+
plugins {
10+
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT"
11+
}
12+
13+
rootProject.name = 'org.hibernate.hibernate-spatial_tests'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
package org_hibernate.hibernate_spatial;
8+
9+
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
10+
import org.hibernate.spatial.integration.SpatialInitializer;
11+
import org.junit.jupiter.api.Test;
12+
13+
class HibernateSpatialTest {
14+
15+
@Test
16+
void test() throws Exception {
17+
new SpatialInitializer().contribute(new StandardServiceRegistryBuilder());
18+
}
19+
}

0 commit comments

Comments
 (0)