Fix a couple failures on CockroachDB

This commit is contained in:
Marco Belladelli 2024-10-02 10:59:55 +02:00
parent ee2d8a3765
commit 6ecc2a6c40
2 changed files with 6 additions and 0 deletions

View File

@ -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();

View File

@ -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" )