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 fff45e05ea
commit d5e0f064ac
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.Table;
import org.hibernate.annotations.JavaType;
import org.hibernate.dialect.MySQLDialect;
import org.hibernate.dialect.OracleDialect;
import org.hibernate.query.Query;
import org.hibernate.type.descriptor.java.ByteArrayJavaType;
import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.orm.junit.DomainModel;
@ -127,6 +129,7 @@ public class ByteArrayIdTest {
@Table(name = "DemoEntity")
public static class DemoEntity {
@Id
@JavaType( ByteArrayJavaType.class )
public Byte[] id;
public String name;
}