Fix a couple failures on CockroachDB
This commit is contained in:
parent
ee2d8a3765
commit
6ecc2a6c40
|
@ -8,6 +8,8 @@ import org.hibernate.MappingException;
|
|||
import org.hibernate.annotations.JdbcTypeCode;
|
||||
import org.hibernate.cfg.AvailableSettings;
|
||||
import org.hibernate.cfg.Configuration;
|
||||
import org.hibernate.dialect.CockroachDialect;
|
||||
import org.hibernate.testing.orm.junit.SkipForDialect;
|
||||
import org.hibernate.type.SqlTypes;
|
||||
|
||||
import org.hibernate.testing.orm.junit.DialectFeatureChecks;
|
||||
|
@ -36,6 +38,7 @@ public class ArrayOfArraysTest {
|
|||
@SessionFactory
|
||||
@ServiceRegistry( settings = @Setting( name = AvailableSettings.HBM2DDL_AUTO, value = "create-drop" ) )
|
||||
@Test
|
||||
@SkipForDialect( dialectClass = CockroachDialect.class, reason = "Unable to find server array type for provided name bytes" )
|
||||
public void testDoubleByteArrayWorks(SessionFactoryScope scope) {
|
||||
final Long id = scope.fromTransaction( session -> {
|
||||
final EntityWithDoubleByteArray entity = new EntityWithDoubleByteArray();
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
package org.hibernate.orm.test.tenantid;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import org.hibernate.annotations.TenantId;
|
||||
import org.hibernate.boot.SessionFactoryBuilder;
|
||||
import org.hibernate.boot.spi.MetadataImplementor;
|
||||
|
@ -115,6 +116,7 @@ public class TenantIdToOneBidirectionalTest implements SessionFactoryProducer {
|
|||
private Long id;
|
||||
|
||||
@TenantId
|
||||
@Column(name="tenant_col")
|
||||
private String tenant;
|
||||
|
||||
@OneToOne( cascade = CascadeType.PERSIST )
|
||||
|
@ -143,6 +145,7 @@ public class TenantIdToOneBidirectionalTest implements SessionFactoryProducer {
|
|||
private Long id;
|
||||
|
||||
@TenantId
|
||||
@Column(name="tenant_col")
|
||||
private String tenant;
|
||||
|
||||
@OneToOne( mappedBy = "child" )
|
||||
|
|
Loading…
Reference in New Issue