Skip to content

Commit 0ce4f3c

Browse files
gavinkingbeikov
authored andcommitted
HHH-17934 limit test to databases with proper MERGE support for now
Signed-off-by: Gavin King <[email protected]>
1 parent 909a8b0 commit 0ce4f3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/stateless/UpsertVersionedTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import jakarta.persistence.Entity;
44
import jakarta.persistence.Id;
55
import jakarta.persistence.Version;
6+
import org.hibernate.dialect.H2Dialect;
7+
import org.hibernate.dialect.PostgreSQLDialect;
8+
import org.hibernate.dialect.SQLServerDialect;
69
import org.hibernate.testing.orm.junit.DomainModel;
10+
import org.hibernate.testing.orm.junit.RequiresDialect;
711
import org.hibernate.testing.orm.junit.SessionFactory;
812
import org.hibernate.testing.orm.junit.SessionFactoryScope;
913
import org.junit.jupiter.api.Test;
@@ -13,6 +17,9 @@
1317
@SessionFactory
1418
@DomainModel(annotatedClasses = UpsertVersionedTest.Record.class)
1519
public class UpsertVersionedTest {
20+
@RequiresDialect(H2Dialect.class)
21+
@RequiresDialect(SQLServerDialect.class)
22+
@RequiresDialect(value = PostgreSQLDialect.class, matchSubTypes = false)
1623
@Test void test(SessionFactoryScope scope) {
1724
scope.inStatelessTransaction(s-> {
1825
s.upsert(new Record(123L,null,"hello earth"));

0 commit comments

Comments
 (0)