-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Hibernate 6.6.0.Final
Add missing reflection entries for [Lorg.hibernate.event.spi.PostUpsertEventListener; and org.hibernate.internal.log.ConnectionInfoLogger_$logger to the Hibernate 6.5.0.Final metadata to create the 6.6.0.Final one.
- Loading branch information
Showing
41 changed files
with
2,901 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
metadata/org.hibernate.orm/hibernate-core/6.6.0.Final/index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
"reflect-config.json", | ||
"resource-config.json" | ||
] |
1,037 changes: 1,037 additions & 0 deletions
1,037
metadata/org.hibernate.orm/hibernate-core/6.6.0.Final/reflect-config.json
Large diffs are not rendered by default.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
metadata/org.hibernate.orm/hibernate-core/6.6.0.Final/resource-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"resources":{ | ||
"includes":[ | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl"}, | ||
"pattern":"\\QMETA-INF/persistence.xml\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.internal.util.ConfigHelper"}, | ||
"pattern":"\\Qhibernate.properties\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalSchemaLocator"}, | ||
"pattern":"\\Qorg/hibernate/hibernate-configuration-3.0.dtd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.jaxb.internal.stax.LocalSchemaLocator"}, | ||
"pattern":"\\Qorg/hibernate/hibernate-mapping-3.0.dtd\\E" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.hibernate.boot.xsd.LocalXsdResolver"}, | ||
"pattern":"\\Qorg/hibernate/jpa/persistence_2_0.xsd\\E" | ||
}, | ||
{ | ||
"condition": {"typeReachable": "org.hibernate.boot.xsd.LocalXsdResolver"}, | ||
"pattern": "\\Qorg/hibernate/jpa/persistence_3_0.xsd\\E" | ||
}, | ||
{ | ||
"condition": {"typeReachable": "org.hibernate.boot.xsd.LocalXsdResolver"}, | ||
"pattern": "\\Qorg/hibernate/jpa/persistence_3_1.xsd\\E" | ||
} | ||
]} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
tests/src/org.hibernate.orm/hibernate-core/6.6.0.Final/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
gradlew.bat | ||
gradlew | ||
gradle/ | ||
build/ | ||
generated-metadata/ |
10 changes: 10 additions & 0 deletions
10
tests/src/org.hibernate.orm/hibernate-core/6.6.0.Final/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# Hibernate ORM | ||
|
||
The metadata has been generated by executing the following script: | ||
|
||
```bash | ||
./generate-metadata.sh | ||
``` | ||
|
||
The generated metadata can be found in the `generated-metadata` directory. |
59 changes: 59 additions & 0 deletions
59
tests/src/org.hibernate.orm/hibernate-core/6.6.0.Final/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Copyright and related rights waived via CC0 | ||
* | ||
* You should have received a copy of the CC0 legalcode along with this | ||
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
*/ | ||
|
||
plugins { | ||
id "org.graalvm.internal.tck" | ||
} | ||
|
||
String libraryVersion = tck.testedLibraryVersion.get() | ||
|
||
dependencies { | ||
testImplementation "org.hibernate.orm:hibernate-core:$libraryVersion" | ||
testImplementation 'org.assertj:assertj-core:3.22.0' | ||
testImplementation 'com.h2database:h2:2.1.214' | ||
testImplementation 'jakarta.validation:jakarta.validation-api:3.0.2' | ||
testImplementation 'org.postgresql:postgresql:42.6.0' | ||
testImplementation 'com.oracle.database.jdbc:ojdbc11:21.9.0.0' | ||
testImplementation 'org.jboss.logging:jboss-logging:3.5.0.Final' | ||
|
||
testImplementation 'ch.qos.logback:logback-classic:1.4.5' | ||
testCompileOnly("net.bytebuddy:byte-buddy:1.12.10") | ||
testCompileOnly("org.graalvm.nativeimage:graal-hotspot-library:22.0.0") | ||
} | ||
|
||
task updateGeneratedMetadata { | ||
doLast { | ||
final ant = new groovy.ant.AntBuilder() | ||
final metadataDir = project.projectDir.toString() + "/generated-metadata" | ||
|
||
// replace typeReachable value for entries generated by IdentifierGeneratorTest test class | ||
ant.replace(file: metadataDir + "/reflect-config.json", | ||
token: "org_hibernate_orm.hibernate_core.IdentifierGeneratorTest", | ||
value: "org.hibernate.id.factory.internal.StandardIdentifierGeneratorFactory") | ||
} | ||
} | ||
|
||
task deleteGeneratedMetadata(type: Delete) { | ||
delete files(project.projectDir.toString() + "/generated-metadata") | ||
} | ||
|
||
graalvmNative { | ||
agent { | ||
defaultMode = "conditional" | ||
modes { | ||
conditional { | ||
userCodeFilterPath = "metadata-conditions-filter.json" | ||
extraFilterPath = "metadata-extra-filter.json" | ||
} | ||
} | ||
metadataCopy { | ||
inputTaskNames.add("test") | ||
outputDirectories.add("generated-metadata") | ||
mergeWithExisting = true | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/src/org.hibernate.orm/hibernate-core/6.6.0.Final/generate-metadata.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
./gradlew deleteGeneratedMetadata | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.H2DialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.MariaDBDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.MSSQLDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.MySQLDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.OracleDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.PostgresDialectHibernateTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.HibernateDialectTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.LoggerTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.IdentifierGeneratorTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.OptimizerTest" -Pagent metadataCopy | ||
./gradlew test --tests "org_hibernate_orm.hibernate_core.EntityManagerTest" -Pagent metadataCopy | ||
./gradlew updateGeneratedMetadata |
2 changes: 2 additions & 0 deletions
2
tests/src/org.hibernate.orm/hibernate-core/6.6.0.Final/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
library.version = 6.6.0.Final | ||
metadata.dir = org.hibernate.orm/hibernate-core/6.6.0.Final/ |
Binary file added
BIN
+62.2 KB
tests/src/org.hibernate.orm/hibernate-core/6.6.0.Final/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
...src/org.hibernate.orm/hibernate-core/6.6.0.Final/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.