HHH-16333 Get rid of special Character[] and Byte[] handling

This commit is contained in:
Christian Beikov 2023-03-23 10:29:38 +01:00
parent eeccc9c99d
commit 64d139325a
1 changed files with 3 additions and 0 deletions

View File

@ -13,9 +13,11 @@ import jakarta.persistence.Entity;
import jakarta.persistence.Id; import jakarta.persistence.Id;
import jakarta.persistence.Table; import jakarta.persistence.Table;
import org.hibernate.annotations.JavaType;
import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.OracleDialect; import org.hibernate.dialect.OracleDialect;
import org.hibernate.query.Query; import org.hibernate.query.Query;
import org.hibernate.type.descriptor.java.ByteArrayJavaType;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.orm.junit.DomainModel; import org.hibernate.testing.orm.junit.DomainModel;
@ -127,6 +129,7 @@ public class ByteArrayIdTest {
@Table(name = "DemoEntity") @Table(name = "DemoEntity")
public static class DemoEntity { public static class DemoEntity {
@Id @Id
@JavaType( ByteArrayJavaType.class )
public Byte[] id; public Byte[] id;
public String name; public String name;
} }