|
22 | 22 | import org.hibernate.annotations.NaturalId;
|
23 | 23 | import org.hibernate.cfg.AvailableSettings;
|
24 | 24 | import org.hibernate.dialect.Dialect;
|
| 25 | +import org.hibernate.dialect.HSQLDialect; |
25 | 26 | import org.hibernate.dialect.PostgreSQLDialect;
|
26 | 27 | import org.hibernate.dialect.PostgreSQLSqlAstTranslator;
|
27 | 28 | import org.hibernate.engine.spi.SessionFactoryImplementor;
|
28 | 29 | import org.hibernate.sql.ast.tree.Statement;
|
29 | 30 | import org.hibernate.testing.jdbc.SQLStatementInspector;
|
30 | 31 | import org.hibernate.testing.orm.junit.DomainModel;
|
| 32 | +import org.hibernate.testing.orm.junit.FailureExpected; |
31 | 33 | import org.hibernate.testing.orm.junit.JiraKey;
|
32 | 34 | import org.hibernate.testing.orm.junit.ServiceRegistry;
|
33 | 35 | import org.hibernate.testing.orm.junit.SessionFactory;
|
34 | 36 | import org.hibernate.testing.orm.junit.SessionFactoryScope;
|
35 | 37 | import org.hibernate.testing.orm.junit.Setting;
|
| 38 | +import org.hibernate.testing.orm.junit.SkipForDialect; |
| 39 | +import org.hibernate.testing.orm.junit.SkipForDialectGroup; |
36 | 40 | import org.junit.jupiter.api.AfterEach;
|
37 | 41 | import org.junit.jupiter.api.BeforeEach;
|
38 | 42 | import org.junit.jupiter.api.Test;
|
|
57 | 61 | }
|
58 | 62 | )
|
59 | 63 | @JiraKey(value = "HHH-18992")
|
| 64 | +@FailureExpected(reason = "Ordered loading by multiple natural-id values is not yet supported", jiraKey = "HHH-19115") |
| 65 | +// TODO remove the SkipForDialectGroup when the @FailureExpected is removed |
| 66 | +@SkipForDialectGroup( |
| 67 | + // The tests don't actually fail for the dialects below, skipping them so that the non-occurring expected failure doesn't fail the Test case |
| 68 | + value = { |
| 69 | + @SkipForDialect(dialectClass = PostgreSQLDialect.class, matchSubTypes = true), |
| 70 | + @SkipForDialect(dialectClass = HSQLDialect.class), |
| 71 | + } |
| 72 | +) |
60 | 73 | public class MultiLoadLockingTest {
|
61 | 74 |
|
62 | 75 | private SQLStatementInspector sqlStatementInspector;
|
|
0 commit comments