From 524e36ed8775d36d1329affa9b1cf32d4d566e5e Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Wed, 9 Aug 2023 11:40:40 +0200 Subject: [PATCH] HHH-17056 Deprecate SimpleValue#getConstraintColumnIterator() --- .../src/main/java/org/hibernate/mapping/OneToOne.java | 4 ++++ .../src/main/java/org/hibernate/mapping/SimpleValue.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/OneToOne.java b/hibernate-core/src/main/java/org/hibernate/mapping/OneToOne.java index bcd117da96..4c1e54563c 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/OneToOne.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/OneToOne.java @@ -117,6 +117,10 @@ public class OneToOne extends ToOne { return columns; } + /** + * @deprecated Use {@link #getSelectables()} instead + */ + @Deprecated(forRemoval = true, since = "6.3") @Override public Iterator getConstraintColumnIterator() { return identifier.getSelectables().iterator(); 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 23464ef797..04a89fb624 100644 --- a/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java +++ b/hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java @@ -282,6 +282,10 @@ public abstract class SimpleValue implements KeyValue { return (List) columns; } + /** + * @deprecated Use {@link #getSelectables()} instead + */ + @Deprecated(forRemoval = true, since = "6.3") public Iterator getConstraintColumnIterator() { return getSelectables().iterator(); }