From 1cc3a9ffeb8f41f69f343f279a525eb10774a4a9 Mon Sep 17 00:00:00 2001 From: brmeyer Date: Thu, 6 Sep 2012 13:28:49 -0400 Subject: [PATCH] HHH-7579 Oracle does not support "unique not null" --- .../src/main/java/org/hibernate/dialect/Oracle8iDialect.java | 5 +++++ .../src/main/java/org/hibernate/dialect/Oracle9Dialect.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java index 40a5891f43..b176676972 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java @@ -570,5 +570,10 @@ public class Oracle8iDialect extends Dialect { public int getInExpressionCountLimit() { return PARAM_LIST_SIZE_LIMIT; } + + @Override + public boolean supportsNotNullUnique() { + return false; + } } diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/Oracle9Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/Oracle9Dialect.java index d0f0d8ce79..341c5681de 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/Oracle9Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/Oracle9Dialect.java @@ -377,4 +377,9 @@ public class Oracle9Dialect extends Dialect { public int getInExpressionCountLimit() { return PARAM_LIST_SIZE_LIMIT; } + + @Override + public boolean supportsNotNullUnique() { + return false; + } }