From 490acd8a0d603c9e41e52a75c45875d2eacfb746 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 19 Dec 2008 19:05:29 +0000 Subject: [PATCH] HHH-3508 - SybaseDialect overrides supportsCascadeDelete to return "false"; SQLServerDialect returns "true" git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15709 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../src/main/java/org/hibernate/dialect/SQLServerDialect.java | 4 ++++ core/src/main/java/org/hibernate/dialect/SybaseDialect.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/core/src/main/java/org/hibernate/dialect/SQLServerDialect.java b/core/src/main/java/org/hibernate/dialect/SQLServerDialect.java index f1d1bf407a..a9b6cc0295 100644 --- a/core/src/main/java/org/hibernate/dialect/SQLServerDialect.java +++ b/core/src/main/java/org/hibernate/dialect/SQLServerDialect.java @@ -138,6 +138,10 @@ public class SQLServerDialect extends SybaseDialect { return false; } + public boolean supportsCascadeDelete() { + return true; + } + public boolean supportsCircularCascadeDeleteConstraints() { // SQL Server (at least up through 2005) does not support defining // cascade delete constraints which can circel back to the mutating diff --git a/core/src/main/java/org/hibernate/dialect/SybaseDialect.java b/core/src/main/java/org/hibernate/dialect/SybaseDialect.java index 8bace1ea77..22cd448bd8 100644 --- a/core/src/main/java/org/hibernate/dialect/SybaseDialect.java +++ b/core/src/main/java/org/hibernate/dialect/SybaseDialect.java @@ -243,6 +243,10 @@ public class SybaseDialect extends Dialect { // Overridden informational metadata ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + public boolean supportsCascadeDelete() { + return false; + } + public boolean supportsEmptyInList() { return false; }