File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 8
8
import org .hibernate .annotations .JdbcTypeCode ;
9
9
import org .hibernate .cfg .AvailableSettings ;
10
10
import org .hibernate .cfg .Configuration ;
11
+ import org .hibernate .dialect .CockroachDialect ;
12
+ import org .hibernate .testing .orm .junit .SkipForDialect ;
11
13
import org .hibernate .type .SqlTypes ;
12
14
13
15
import org .hibernate .testing .orm .junit .DialectFeatureChecks ;
@@ -36,6 +38,7 @@ public class ArrayOfArraysTest {
36
38
@ SessionFactory
37
39
@ ServiceRegistry ( settings = @ Setting ( name = AvailableSettings .HBM2DDL_AUTO , value = "create-drop" ) )
38
40
@ Test
41
+ @ SkipForDialect ( dialectClass = CockroachDialect .class , reason = "Unable to find server array type for provided name bytes" )
39
42
public void testDoubleByteArrayWorks (SessionFactoryScope scope ) {
40
43
final Long id = scope .fromTransaction ( session -> {
41
44
final EntityWithDoubleByteArray entity = new EntityWithDoubleByteArray ();
Original file line number Diff line number Diff line change 4
4
*/
5
5
package org .hibernate .orm .test .tenantid ;
6
6
7
+ import jakarta .persistence .Column ;
7
8
import org .hibernate .annotations .TenantId ;
8
9
import org .hibernate .boot .SessionFactoryBuilder ;
9
10
import org .hibernate .boot .spi .MetadataImplementor ;
@@ -115,6 +116,7 @@ static class RootEntity {
115
116
private Long id ;
116
117
117
118
@ TenantId
119
+ @ Column (name ="tenant_col" )
118
120
private String tenant ;
119
121
120
122
@ OneToOne ( cascade = CascadeType .PERSIST )
@@ -143,6 +145,7 @@ static class ChildEntity {
143
145
private Long id ;
144
146
145
147
@ TenantId
148
+ @ Column (name ="tenant_col" )
146
149
private String tenant ;
147
150
148
151
@ OneToOne ( mappedBy = "child" )
You can’t perform that action at this time.
0 commit comments