com.vladmihalcea.hibernate.type.array.internal.AbstractArrayTypeDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-types-60 Show documentation
Show all versions of hibernate-types-60 Show documentation
Hibernate ORM 6.0 extra Types
package com.vladmihalcea.hibernate.type.array.internal;
import org.hibernate.HibernateException;
import org.hibernate.type.descriptor.WrapperOptions;
import org.hibernate.type.descriptor.java.AbstractClassJavaType;
import org.hibernate.type.descriptor.java.MutabilityPlan;
import org.hibernate.type.descriptor.java.MutableMutabilityPlan;
import org.hibernate.usertype.DynamicParameterizedType;
import java.sql.Array;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Properties;
import static com.vladmihalcea.hibernate.type.array.internal.AbstractArrayType.SQL_ARRAY_TYPE;
/**
* @author Vlad Mihalcea
*/
public abstract class AbstractArrayTypeDescriptor
extends AbstractClassJavaType implements DynamicParameterizedType {
private Class arrayObjectClass;
private String sqlArrayType;
public AbstractArrayTypeDescriptor(Class arrayObjectClass) {
this(arrayObjectClass, (MutabilityPlan) new MutableMutabilityPlan