From caf70b58dbeb75b537eb341098bb2c781dd977a0 Mon Sep 17 00:00:00 2001 From: Aleksandr Laptev Date: Mon, 28 Sep 2020 09:55:27 +0300 Subject: [PATCH] HH-116020 hibernate 5.4 --- .../ru/hh/nab/hibernate/NabSessionFactoryBuilderFactory.java | 3 ++- pom.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nab-hibernate/src/main/java/ru/hh/nab/hibernate/NabSessionFactoryBuilderFactory.java b/nab-hibernate/src/main/java/ru/hh/nab/hibernate/NabSessionFactoryBuilderFactory.java index fa0ed1519..ea60c9660 100644 --- a/nab-hibernate/src/main/java/ru/hh/nab/hibernate/NabSessionFactoryBuilderFactory.java +++ b/nab-hibernate/src/main/java/ru/hh/nab/hibernate/NabSessionFactoryBuilderFactory.java @@ -1,6 +1,7 @@ package ru.hh.nab.hibernate; import org.hibernate.boot.SessionFactoryBuilder; +import org.hibernate.boot.internal.MetadataImpl; import org.hibernate.boot.internal.SessionFactoryBuilderImpl; import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.spi.AbstractDelegatingSessionFactoryOptions; @@ -46,7 +47,7 @@ protected SessionFactoryBuilder createSessionFactoryBuilder(MetadataImplementor public static class HhSessionFactoryBuilder extends SessionFactoryBuilderImpl { protected HhSessionFactoryBuilder(MetadataImplementor metadata) { - super(metadata); + super(metadata, ((MetadataImpl)metadata).getBootstrapContext()); } @Override diff --git a/pom.xml b/pom.xml index 04c0485e8..ceba3e31a 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ 5.2.9.RELEASE 2.3.7.RELEASE 2.29.1 - 5.2.10.Final + 5.4.21.Final 42.2.5 0.19 9.4.24.v20191120