Skip to content

Commit 78d5de2

Browse files
authored
Added metadata for org.hibernate:hibernate-core:5.6.14.Final (#247)
1 parent 4370e07 commit 78d5de2

34 files changed

+2522
-0
lines changed

metadata/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@
129129
"directory": "org.glassfish.jaxb/jaxb-runtime",
130130
"module": "org.glassfish.jaxb:jaxb-runtime"
131131
},
132+
{
133+
"directory" : "org.hibernate/hibernate-core",
134+
"module" : "org.hibernate:hibernate-core"
135+
},
132136
{
133137
"directory": "org.thymeleaf/thymeleaf",
134138
"module": "org.thymeleaf:thymeleaf"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"reflect-config.json",
3+
"resource-config.json"
4+
]

metadata/org.hibernate/hibernate-core/5.6.14.Final/reflect-config.json

Lines changed: 1232 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"resources":{
3+
"includes":[
4+
{
5+
"condition":{"typeReachable":"org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl"},
6+
"pattern":"\\QMETA-INF/persistence.xml\\E"
7+
},
8+
{
9+
"condition":{"typeReachable":"org.hibernate.internal.util.ConfigHelper"},
10+
"pattern":"\\Qhibernate.properties\\E"
11+
},
12+
{
13+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$DtdMapping"},
14+
"pattern":"\\Qorg/hibernate/hibernate-configuration-3.0.dtd\\E"
15+
},
16+
{
17+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$DtdMapping"},
18+
"pattern":"\\Qorg/hibernate/hibernate-mapping-3.0.dtd\\E"
19+
},
20+
{
21+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"},
22+
"pattern":"\\Qorg/hibernate/hibernate-mapping-4.0.xsd\\E"
23+
},
24+
{
25+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"},
26+
"pattern":"\\Qorg/hibernate/jpa/orm_2_0.xsd\\E"
27+
},
28+
{
29+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"},
30+
"pattern":"\\Qorg/hibernate/jpa/orm_2_1.xsd\\E"
31+
},
32+
{
33+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"},
34+
"pattern":"\\Qorg/hibernate/jpa/orm_2_2.xsd\\E"
35+
},
36+
{
37+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"},
38+
"pattern":"\\Qorg/hibernate/jpa/orm_3_0.xsd\\E"
39+
},
40+
{
41+
"condition":{"typeReachable":"org.hibernate.boot.xsd.LocalXsdResolver"},
42+
"pattern":"\\Qorg/hibernate/jpa/persistence_2_0.xsd\\E"
43+
},
44+
{
45+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"},
46+
"pattern":"\\Qorg/hibernate/xsd/cfg/legacy-configuration-4.0.xsd\\E"
47+
},
48+
{
49+
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalXmlResourceResolver$NamespaceSchemaMapping"},
50+
"pattern":"\\Qorg/hibernate/xsd/mapping/legacy-mapping-4.0.xsd\\E"
51+
}
52+
]}
53+
}
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": "5.6.14.Final",
5+
"module": "org.hibernate:hibernate-core",
6+
"tested-versions": [
7+
"5.6.14.Final"
8+
]
9+
}
10+
]

tests/src/index.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,17 @@
329329
}
330330
]
331331
},
332+
{
333+
"test-project-path" : "org.hibernate/hibernate-core/5.6.14.Final",
334+
"libraries" : [
335+
{
336+
"name" : "org.hibernate:hibernate-core",
337+
"versions" : [
338+
"5.6.14.Final"
339+
]
340+
}
341+
]
342+
},
332343
{
333344
"test-project-path": "org.thymeleaf/thymeleaf/3.1.0.M2",
334345
"libraries": [
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
gradlew.bat
2+
gradlew
3+
gradle/
4+
build/
5+
generated-metadata/
6+
.run/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# Hibernate ORM
3+
4+
The metadata has been generated by executing the following script:
5+
6+
```bash
7+
./generate-metadata.sh
8+
```
9+
10+
The generated metadata can be found in the `generated-metadata` directory.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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-core:$libraryVersion"
16+
testImplementation 'org.assertj:assertj-core:3.22.0'
17+
testImplementation 'com.h2database:h2:2.1.214'
18+
testImplementation 'javax.validation:validation-api:2.0.1.Final'
19+
testImplementation 'ch.qos.logback:logback-classic:1.4.5'
20+
}
21+
22+
task updateGeneratedMetadata {
23+
doLast {
24+
final ant = new groovy.ant.AntBuilder()
25+
final metadataDir = project.projectDir.toString() + "/generated-metadata"
26+
27+
// replace typeReachable value for entries generated by AdditionalMetadataTest test class
28+
ant.replace(file: metadataDir + "/reflect-config.json",
29+
token: "org_hibernate.hibernate_core.AdditionalMetadataTest",
30+
value: "org.hibernate.jpa.HibernatePersistenceProvider")
31+
32+
// replace typeReachable value for entries generated by IdentifierGeneratorTest test class
33+
ant.replace(file: metadataDir + "/reflect-config.json",
34+
token: "org_hibernate.hibernate_core.IdentifierGeneratorTest",
35+
value: "org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory")
36+
}
37+
}
38+
39+
task deleteGeneratedMetadata(type: Delete) {
40+
delete files(project.projectDir.toString() + "/generated-metadata")
41+
}
42+
43+
graalvmNative {
44+
agent {
45+
defaultMode = "conditional"
46+
modes {
47+
conditional {
48+
userCodeFilterPath = "metadata-conditions-filter.json"
49+
extraFilterPath = "metadata-extra-filter.json"
50+
}
51+
}
52+
metadataCopy {
53+
inputTaskNames.add("test")
54+
outputDirectories.add("generated-metadata")
55+
mergeWithExisting = true
56+
}
57+
}
58+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
./gradlew deleteGeneratedMetadata
4+
./gradlew test --tests "org_hibernate.hibernate_core.H2DialectHibernateTest" -Pagent metadataCopy
5+
./gradlew test --tests "org_hibernate.hibernate_core.MariaDBDialectHibernateTest" -Pagent metadataCopy
6+
./gradlew test --tests "org_hibernate.hibernate_core.MSSQLDialectHibernateTest" -Pagent metadataCopy
7+
./gradlew test --tests "org_hibernate.hibernate_core.MySQLDialectHibernateTest" -Pagent metadataCopy
8+
./gradlew test --tests "org_hibernate.hibernate_core.OracleDialectHibernateTest" -Pagent metadataCopy
9+
./gradlew test --tests "org_hibernate.hibernate_core.PostgresDialectHibernateTest" -Pagent metadataCopy
10+
./gradlew test --tests "org_hibernate.hibernate_core.HibernateDialectTest" -Pagent metadataCopy
11+
./gradlew test --tests "org_hibernate.hibernate_core.AdditionalMetadataTest" -Pagent metadataCopy
12+
./gradlew test --tests "org_hibernate.hibernate_core.IdentifierGeneratorTest" -Pagent metadataCopy
13+
./gradlew test --tests "org_hibernate.hibernate_core.OptimizerTest" -Pagent metadataCopy
14+
./gradlew updateGeneratedMetadata

0 commit comments

Comments
 (0)