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:
permissions:
contents: read
name: Java 17
name: Hibernate ORM
# runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64, OCI]
strategy:

View File

@ -31,7 +31,7 @@ jobs:
build:
permissions:
contents: read
name: Java 11
name: Java 17
runs-on: ubuntu-latest
strategy:
fail-fast: false
@ -77,11 +77,11 @@ jobs:
env:
RDBMS: ${{ matrix.rdbms }}
run: ci/database-start.sh
- name: Set up Java 11
- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
java-version: '17'
- name: Get year/month for cache key
id: get-date
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.UnsupportedFeatureHandling;
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.xsd.MappingXsdSupport;
@ -146,7 +146,7 @@ public abstract class TransformHbmXmlTask extends SourceTask {
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 File copyFile = determineCopyFile( copyName, hbmXmlFile );