File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 4
4
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
5
5
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
6
6
*/
7
-
8
- /**
9
- *
10
- */
11
7
package org .hibernate .orm .test .mapping .type .typedef ;
12
8
9
+ import org .hibernate .dialect .PostgreSQLDialect ;
13
10
import org .hibernate .orm .test .mapping .converted .enums .Gender ;
14
11
import org .hibernate .orm .test .mapping .converted .enums .HairColor ;
15
12
import org .hibernate .orm .test .mapping .converted .enums .Person ;
20
17
import org .hibernate .testing .orm .junit .DomainModel ;
21
18
import org .hibernate .testing .orm .junit .SessionFactory ;
22
19
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
20
+ import org .hibernate .testing .orm .junit .SkipForDialect ;
23
21
import org .junit .jupiter .api .AfterEach ;
24
22
import org .junit .jupiter .api .BeforeEach ;
25
23
import org .junit .jupiter .api .Test ;
36
34
xmlMappings = "mappings/type/custom/typedef/PersonNamedEnumsUserType.xml"
37
35
)
38
36
@ SessionFactory
37
+ @ SkipForDialect (dialectClass = PostgreSQLDialect .class )
39
38
public class NamedEnumUserTypeTest {
40
39
@ Test
41
40
@ TestForIssue (jiraKey = "HHH-14820" )
Original file line number Diff line number Diff line change 10
10
11
11
import org .hibernate .annotations .OnDelete ;
12
12
import org .hibernate .annotations .OnDeleteAction ;
13
+ import org .hibernate .dialect .PostgreSQLDialect ;
13
14
import org .hibernate .query .Query ;
14
15
15
16
import org .hibernate .testing .TestForIssue ;
16
17
import org .hibernate .testing .orm .junit .DomainModel ;
17
18
import org .hibernate .testing .orm .junit .SessionFactory ;
18
19
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
20
+ import org .hibernate .testing .orm .junit .SkipForDialect ;
19
21
import org .junit .jupiter .api .AfterEach ;
20
22
import org .junit .jupiter .api .BeforeEach ;
21
23
import org .junit .jupiter .api .Test ;
@@ -67,7 +69,7 @@ public void tearDown(SessionFactoryScope scope) {
67
69
);
68
70
}
69
71
70
- @ Test
72
+ @ Test @ SkipForDialect ( dialectClass = PostgreSQLDialect . class )
71
73
public void testDeleteByEventType (SessionFactoryScope scope ) {
72
74
scope .inTransaction (
73
75
session -> {
@@ -106,7 +108,7 @@ public void testDelete(SessionFactoryScope scope) {
106
108
);
107
109
}
108
110
109
- @ Test
111
+ @ Test @ SkipForDialect ( dialectClass = PostgreSQLDialect . class )
110
112
public void testSelect (SessionFactoryScope scope ) {
111
113
scope .inTransaction (
112
114
session -> {
Original file line number Diff line number Diff line change 3
3
import java .util .List ;
4
4
import java .util .Locale ;
5
5
6
+ import org .hibernate .dialect .PostgreSQLDialect ;
6
7
import org .hibernate .testing .TestForIssue ;
7
8
import org .hibernate .testing .orm .junit .DomainModel ;
8
9
import org .hibernate .testing .orm .junit .SessionFactory ;
9
10
import org .hibernate .testing .orm .junit .SessionFactoryScope ;
11
+ import org .hibernate .testing .orm .junit .SkipForDialect ;
10
12
import org .junit .jupiter .api .BeforeEach ;
11
13
import org .junit .jupiter .api .Test ;
12
14
24
26
)
25
27
@ SessionFactory
26
28
@ TestForIssue ( jiraKey = "HHH-15711" )
29
+ @ SkipForDialect (dialectClass = PostgreSQLDialect .class )
27
30
public class FunctionAndEnumsTest {
28
31
29
32
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ public void testCoalesceFunction(SessionFactoryScope scope) {
190
190
session .createQuery ("select coalesce(nullif(e.gender,?1), e.gender) from EntityOfBasics e" )
191
191
.setParameter (1 , FEMALE )
192
192
.list ();
193
- session .createQuery ("select ifnull(e.gender, e.convertedGender ) from EntityOfBasics e" )
193
+ session .createQuery ("select ifnull(e.gender, org.hibernate.testing.orm.domain.gambit.EntityOfBasics$Gender.MALE ) from EntityOfBasics e" )
194
194
.list ();
195
195
}
196
196
);
You can’t perform that action at this time.
0 commit comments