HHH-17377 - Migrate to JPA 3.2

https://hibernate.atlassian.net/browse/HHH-17377

Change GitHub workflow to use Java 17
This commit is contained in:
Steve Ebersole 2023-11-07 04:45:29 -06:00
parent 30993f1367
commit 5781bdd30f
3 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ jobs:
build: build:
permissions: permissions:
contents: read contents: read
name: Java 17 name: Hibernate ORM
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64, OCI] runs-on: [self-hosted, Linux, X64, OCI]
strategy: strategy:

View File

@ -31,7 +31,7 @@ jobs:
build: build:
permissions: permissions:
contents: read contents: read
name: Java 11 name: Java 17
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@ -77,11 +77,11 @@ jobs:
env: env:
RDBMS: ${{ matrix.rdbms }} RDBMS: ${{ matrix.rdbms }}
run: ci/database-start.sh run: ci/database-start.sh
- name: Set up Java 11 - name: Set up Java 17
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: '11' java-version: '17'
- name: Get year/month for cache key - name: Get year/month for cache key
id: get-date id: get-date
run: echo "yearmonth=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT run: echo "yearmonth=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT

View File

@ -24,7 +24,7 @@ import org.hibernate.boot.jaxb.hbm.spi.JaxbHbmHibernateMapping;
import org.hibernate.boot.jaxb.hbm.transform.HbmXmlTransformer; import org.hibernate.boot.jaxb.hbm.transform.HbmXmlTransformer;
import org.hibernate.boot.jaxb.hbm.transform.UnsupportedFeatureHandling; import org.hibernate.boot.jaxb.hbm.transform.UnsupportedFeatureHandling;
import org.hibernate.boot.jaxb.internal.MappingBinder; import org.hibernate.boot.jaxb.internal.MappingBinder;
import org.hibernate.boot.jaxb.mapping.JaxbEntityMappings; import org.hibernate.boot.jaxb.mapping.spi.JaxbEntityMappingsImpl;
import org.hibernate.boot.jaxb.spi.Binding; import org.hibernate.boot.jaxb.spi.Binding;
import org.hibernate.boot.xsd.MappingXsdSupport; import org.hibernate.boot.xsd.MappingXsdSupport;
@ -146,7 +146,7 @@ public abstract class TransformHbmXmlTask extends SourceTask {
final HbmXmlTransformer.Options transformationOptions = unsupportedFeatures::get; final HbmXmlTransformer.Options transformationOptions = unsupportedFeatures::get;
final JaxbEntityMappings transformed = HbmXmlTransformer.transform( binding.getRoot(), origin, transformationOptions ); final JaxbEntityMappingsImpl transformed = HbmXmlTransformer.transform( binding.getRoot(), origin, transformationOptions );
final String copyName = determineCopyName( hbmXmlFile ); final String copyName = determineCopyName( hbmXmlFile );
final File copyFile = determineCopyFile( copyName, hbmXmlFile ); final File copyFile = determineCopyFile( copyName, hbmXmlFile );