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 88import org .hibernate .annotations .JdbcTypeCode ;
99import org .hibernate .cfg .AvailableSettings ;
1010import org .hibernate .cfg .Configuration ;
11+ import org .hibernate .dialect .CockroachDialect ;
12+ import org .hibernate .testing .orm .junit .SkipForDialect ;
1113import org .hibernate .type .SqlTypes ;
1214
1315import org .hibernate .testing .orm .junit .DialectFeatureChecks ;
@@ -36,6 +38,7 @@ public class ArrayOfArraysTest {
3638 @ SessionFactory
3739 @ ServiceRegistry ( settings = @ Setting ( name = AvailableSettings .HBM2DDL_AUTO , value = "create-drop" ) )
3840 @ Test
41+ @ SkipForDialect ( dialectClass = CockroachDialect .class , reason = "Unable to find server array type for provided name bytes" )
3942 public void testDoubleByteArrayWorks (SessionFactoryScope scope ) {
4043 final Long id = scope .fromTransaction ( session -> {
4144 final EntityWithDoubleByteArray entity = new EntityWithDoubleByteArray ();
Original file line number Diff line number Diff line change 44 */
55package org .hibernate .orm .test .tenantid ;
66
7+ import jakarta .persistence .Column ;
78import org .hibernate .annotations .TenantId ;
89import org .hibernate .boot .SessionFactoryBuilder ;
910import org .hibernate .boot .spi .MetadataImplementor ;
@@ -115,6 +116,7 @@ static class RootEntity {
115116 private Long id ;
116117
117118 @ TenantId
119+ @ Column (name ="tenant_col" )
118120 private String tenant ;
119121
120122 @ OneToOne ( cascade = CascadeType .PERSIST )
@@ -143,6 +145,7 @@ static class ChildEntity {
143145 private Long id ;
144146
145147 @ TenantId
148+ @ Column (name ="tenant_col" )
146149 private String tenant ;
147150
148151 @ OneToOne ( mappedBy = "child" )
You can’t perform that action at this time.
0 commit comments