Skip to content

Commit 5a034f9

Browse files
committed
HHH-10086 - Deprecate Dialect#getIdentityColumnString() and Dialect#getIdentitySelectString()
1 parent b9fce69 commit 5a034f9

File tree

1 file changed

+6
-0
lines changed
  • hibernate-core/src/main/java/org/hibernate/dialect

1 file changed

+6
-0
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,10 @@ public String getIdentitySelectString(String table, String column, int type) thr
804804
*
805805
* @return The appropriate select command
806806
* @throws MappingException If IDENTITY generation is not supported.
807+
*
808+
* @deprecated use {@link Dialect#getIdentitySelectString(String, String, int)} instead
807809
*/
810+
@Deprecated
808811
protected String getIdentitySelectString() throws MappingException {
809812
throw new MappingException( getClass().getName() + " does not support identity key generation" );
810813
}
@@ -826,7 +829,10 @@ public String getIdentityColumnString(int type) throws MappingException {
826829
*
827830
* @return The appropriate DDL fragment.
828831
* @throws MappingException If IDENTITY generation is not supported.
832+
*
833+
* @deprecated use {@link Dialect#getIdentityColumnString(int)} instead
829834
*/
835+
@Deprecated
830836
protected String getIdentityColumnString() throws MappingException {
831837
throw new MappingException( getClass().getName() + " does not support identity key generation" );
832838
}

0 commit comments

Comments
 (0)