From f4441e3664234d26eb1a48e21351fe2bd76f2352 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Wed, 4 Sep 2019 15:41:15 +0100 Subject: [PATCH] Fix compilation errors --- .../main/java/org/hibernate/mapping/SimpleValue.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java b/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java index 7e9b4329a7..26a4cd640b 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java @@ -65,6 +65,7 @@ public abstract class SimpleValue implements KeyValue { public static final String DEFAULT_ID_GEN_STRATEGY = "assigned"; + private MetadataBuildingContext buildingContext; private final MetadataImplementor metadata; private final List columns = new ArrayList<>(); @@ -106,16 +107,13 @@ public abstract class SimpleValue implements KeyValue { this.table = table; } - /** - * @deprecated Use {@link SimpleValue#SimpleValue(MetadataBuildingContext, Table)} instead. - */ - @Deprecated public SimpleValue(MetadataBuildingContext buildingContext) { - this( buildingContext.getMetadataCollector() ); + this(buildingContext.getMetadataCollector()); + this.buildingContext = buildingContext; } public SimpleValue(MetadataBuildingContext buildingContext, Table table) { - this.metadata = buildingContext.getMetadataCollector(); + this( buildingContext ); this.table = table; }