HHH-10086 - Deprecate Dialect#getIdentityColumnString() and Dialect#getIdentitySelectString()

This commit is contained in:
Andrea Boriero 2015-09-04 18:10:26 +01:00
parent 0aca04ff7a
commit 75a0991ae9
1 changed files with 6 additions and 0 deletions

View File

@ -804,7 +804,10 @@ public abstract class Dialect implements ConversionContext {
* *
* @return The appropriate select command * @return The appropriate select command
* @throws MappingException If IDENTITY generation is not supported. * @throws MappingException If IDENTITY generation is not supported.
*
* @deprecated use {@link Dialect#getIdentitySelectString(String, String, int)} instead
*/ */
@Deprecated
protected String getIdentitySelectString() throws MappingException { protected String getIdentitySelectString() throws MappingException {
throw new MappingException( getClass().getName() + " does not support identity key generation" ); 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. * @return The appropriate DDL fragment.
* @throws MappingException If IDENTITY generation is not supported. * @throws MappingException If IDENTITY generation is not supported.
*
* @deprecated use {@link Dialect#getIdentityColumnString(int)} instead
*/ */
@Deprecated
protected String getIdentityColumnString() throws MappingException { protected String getIdentityColumnString() throws MappingException {
throw new MappingException( getClass().getName() + " does not support identity key generation" ); throw new MappingException( getClass().getName() + " does not support identity key generation" );
} }