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 3
3
import jakarta .persistence .Entity ;
4
4
import jakarta .persistence .Id ;
5
5
import jakarta .persistence .Version ;
6
+ import org .hibernate .dialect .H2Dialect ;
7
+ import org .hibernate .dialect .PostgreSQLDialect ;
8
+ import org .hibernate .dialect .SQLServerDialect ;
6
9
import org .hibernate .testing .orm .junit .DomainModel ;
10
+ import org .hibernate .testing .orm .junit .RequiresDialect ;
7
11
import org .hibernate .testing .orm .junit .SessionFactory ;
8
12
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
9
13
import org .junit .jupiter .api .Test ;
13
17
@ SessionFactory
14
18
@ DomainModel (annotatedClasses = UpsertVersionedTest .Record .class )
15
19
public class UpsertVersionedTest {
20
+ @ RequiresDialect (H2Dialect .class )
21
+ @ RequiresDialect (SQLServerDialect .class )
22
+ @ RequiresDialect (value = PostgreSQLDialect .class , matchSubTypes = false )
16
23
@ Test void test (SessionFactoryScope scope ) {
17
24
scope .inStatelessTransaction (s -> {
18
25
s .upsert (new Record (123L ,null ,"hello earth" ));
You can’t perform that action at this time.
0 commit comments