From 75a0991ae96a71372f449932168651a3089e7baa Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Fri, 4 Sep 2015 18:10:26 +0100 Subject: [PATCH] HHH-10086 - Deprecate Dialect#getIdentityColumnString() and Dialect#getIdentitySelectString() --- .../src/main/java/org/hibernate/dialect/Dialect.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java index 40fe3b111a..fd534376c8 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java @@ -804,7 +804,10 @@ public abstract class Dialect implements ConversionContext { * * @return The appropriate select command * @throws MappingException If IDENTITY generation is not supported. + * + * @deprecated use {@link Dialect#getIdentitySelectString(String, String, int)} instead */ + @Deprecated protected String getIdentitySelectString() throws MappingException { throw new MappingException( getClass().getName() + " does not support identity key generation" ); } @@ -826,7 +829,10 @@ public abstract class Dialect implements ConversionContext { * * @return The appropriate DDL fragment. * @throws MappingException If IDENTITY generation is not supported. + * + * @deprecated use {@link Dialect#getIdentityColumnString(int)} instead */ + @Deprecated protected String getIdentityColumnString() throws MappingException { throw new MappingException( getClass().getName() + " does not support identity key generation" ); }