File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/stateless Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 33import jakarta .persistence .Entity ;
44import jakarta .persistence .Id ;
55import jakarta .persistence .Version ;
6+ import org .hibernate .dialect .H2Dialect ;
7+ import org .hibernate .dialect .PostgreSQLDialect ;
8+ import org .hibernate .dialect .SQLServerDialect ;
69import org .hibernate .testing .orm .junit .DomainModel ;
10+ import org .hibernate .testing .orm .junit .RequiresDialect ;
711import org .hibernate .testing .orm .junit .SessionFactory ;
812import org .hibernate .testing .orm .junit .SessionFactoryScope ;
913import org .junit .jupiter .api .Test ;
1317@ SessionFactory
1418@ DomainModel (annotatedClasses = UpsertVersionedTest .Record .class )
1519public 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" ));
You can’t perform that action at this time.
0 commit comments