HHH-13573 : Test failure due to Sybase not supporting cascade delete on foreign key definitions

This commit is contained in:
Gail Badner 2019-08-14 00:25:49 -07:00
parent ce03ef96b9
commit fed93b0ae9

View File

@ -37,6 +37,8 @@
import org.hibernate.mapping.PersistentClass; import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.Table; import org.hibernate.mapping.Table;
import org.hibernate.testing.DialectChecks;
import org.hibernate.testing.RequiresDialectFeature;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase; import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
import org.hibernate.test.annotations.Customer; import org.hibernate.test.annotations.Customer;
@ -359,6 +361,7 @@ public void testCascadeDelete() throws Exception {
} }
@Test @Test
@RequiresDialectFeature(DialectChecks.SupportsCascadeDeleteCheck.class)
public void testCascadeDeleteWithUnidirectionalAssociation() throws Exception { public void testCascadeDeleteWithUnidirectionalAssociation() throws Exception {
OnDeleteUnidirectionalOneToManyChild child = new OnDeleteUnidirectionalOneToManyChild(); OnDeleteUnidirectionalOneToManyChild child = new OnDeleteUnidirectionalOneToManyChild();