Skip to content

Commit da4a10e

Browse files
committed
HHH-7797 Deprecating mistakenly removed Dialect methods
1 parent f3ff104 commit da4a10e

File tree

1 file changed

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

1 file changed

+45
-0
lines changed

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,4 +2315,49 @@ public UniqueDelegate getUniqueDelegate() {
23152315
public String getNotExpression( String expression ) {
23162316
return "not " + expression;
23172317
}
2318+
2319+
/**
2320+
* Does this dialect support the <tt>UNIQUE</tt> column syntax?
2321+
*
2322+
* @return boolean
2323+
*
2324+
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
2325+
*/
2326+
@Deprecated
2327+
public boolean supportsUnique() {
2328+
return true;
2329+
}
2330+
2331+
/**
2332+
* Does this dialect support adding Unique constraints via create and alter table ?
2333+
*
2334+
* @return boolean
2335+
*
2336+
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
2337+
*/
2338+
@Deprecated
2339+
public boolean supportsUniqueConstraintInCreateAlterTable() {
2340+
return true;
2341+
}
2342+
2343+
/**
2344+
* The syntax used to add a unique constraint to a table.
2345+
*
2346+
* @param constraintName The name of the unique constraint.
2347+
* @return The "add unique" fragment
2348+
*
2349+
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
2350+
*/
2351+
@Deprecated
2352+
public String getAddUniqueConstraintString(String constraintName) {
2353+
return " add constraint " + constraintName + " unique ";
2354+
}
2355+
2356+
/**
2357+
* @deprecated {@link #getUniqueDelegate()} should be overridden instead.
2358+
*/
2359+
@Deprecated
2360+
public boolean supportsNotNullUnique() {
2361+
return true;
2362+
}
23182363
}

0 commit comments

Comments
 (0)