File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/ondeletecascade Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1818import org .hibernate .engine .spi .SessionImplementor ;
1919import org .hibernate .stat .EntityStatistics ;
2020import org .hibernate .stat .Statistics ;
21+ import org .hibernate .testing .orm .junit .DialectFeatureChecks ;
2122import org .hibernate .testing .orm .junit .EntityManagerFactoryScope ;
2223import org .hibernate .testing .orm .junit .Jpa ;
24+ import org .hibernate .testing .orm .junit .RequiresDialectFeature ;
2325import org .junit .jupiter .api .Test ;
2426
2527import java .util .HashSet ;
3436 OnDeleteCascadeRemoveTest .Child .class },
3537 generateStatistics = true ,
3638 useCollectingStatementInspector = true )
39+ @ RequiresDialectFeature (feature = DialectFeatureChecks .SupportsCascadeDeleteCheck .class )
3740class OnDeleteCascadeRemoveTest {
3841 @ Test
3942 void testOnDeleteCascadeRemove1 (EntityManagerFactoryScope scope ) {
Original file line number Diff line number Diff line change 99import jakarta .persistence .ManyToOne ;
1010import jakarta .persistence .OneToMany ;
1111import org .hibernate .annotations .OnDelete ;
12+ import org .hibernate .testing .orm .junit .DialectFeatureChecks ;
1213import org .hibernate .testing .orm .junit .EntityManagerFactoryScope ;
1314import org .hibernate .testing .orm .junit .Jpa ;
15+ import org .hibernate .testing .orm .junit .RequiresDialectFeature ;
1416import org .junit .jupiter .api .AfterEach ;
1517import org .junit .jupiter .api .Test ;
1618
2224import static org .junit .jupiter .api .Assertions .assertNull ;
2325
2426@ Jpa (annotatedClasses = {OnDeleteTest .Parent .class , OnDeleteTest .Child .class })
27+ @ RequiresDialectFeature (feature = DialectFeatureChecks .SupportsCascadeDeleteCheck .class )
2528public class OnDeleteTest {
2629 @ Test
2730 public void testOnDelete (EntityManagerFactoryScope scope ) {
Original file line number Diff line number Diff line change 1212import org .hibernate .TransientObjectException ;
1313import org .hibernate .annotations .OnDelete ;
1414import org .hibernate .annotations .OnDeleteAction ;
15+ import org .hibernate .testing .orm .junit .DialectFeatureChecks ;
1516import org .hibernate .testing .orm .junit .EntityManagerFactoryScope ;
1617import org .hibernate .testing .orm .junit .Jpa ;
18+ import org .hibernate .testing .orm .junit .RequiresDialectFeature ;
1719import org .junit .jupiter .api .AfterEach ;
1820import org .junit .jupiter .api .Test ;
1921
2628import static org .junit .jupiter .api .Assertions .fail ;
2729
2830@ Jpa (annotatedClasses = {OnDeleteTest2 .Parent .class , OnDeleteTest2 .Child .class })
31+ @ RequiresDialectFeature (feature = DialectFeatureChecks .SupportsCascadeDeleteCheck .class )
2932public class OnDeleteTest2 {
3033 @ Test
3134 public void testOnDeleteParent (EntityManagerFactoryScope scope ) {
You can’t perform that action at this time.
0 commit comments