HHH-17934 limit test to databases with proper MERGE support for now
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
909a8b0b4a
commit
0ce4f3c083
|
@ -3,7 +3,11 @@ package org.hibernate.orm.test.stateless;
|
|||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Version;
|
||||
import org.hibernate.dialect.H2Dialect;
|
||||
import org.hibernate.dialect.PostgreSQLDialect;
|
||||
import org.hibernate.dialect.SQLServerDialect;
|
||||
import org.hibernate.testing.orm.junit.DomainModel;
|
||||
import org.hibernate.testing.orm.junit.RequiresDialect;
|
||||
import org.hibernate.testing.orm.junit.SessionFactory;
|
||||
import org.hibernate.testing.orm.junit.SessionFactoryScope;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -13,6 +17,9 @@ import static org.junit.Assert.assertEquals;
|
|||
@SessionFactory
|
||||
@DomainModel(annotatedClasses = UpsertVersionedTest.Record.class)
|
||||
public class UpsertVersionedTest {
|
||||
@RequiresDialect(H2Dialect.class)
|
||||
@RequiresDialect(SQLServerDialect.class)
|
||||
@RequiresDialect(value = PostgreSQLDialect.class, matchSubTypes = false)
|
||||
@Test void test(SessionFactoryScope scope) {
|
||||
scope.inStatelessTransaction(s-> {
|
||||
s.upsert(new Record(123L,null,"hello earth"));
|
||||
|
|
Loading…
Reference in New Issue