Example usage for org.hibernate.usertype UserType interface-usage

List of usage examples for org.hibernate.usertype UserType interface-usage

Introduction

In this page you can find the example usage for org.hibernate.usertype UserType interface-usage.

Usage

From source file com.thesett.catalogue.customtypes.DateOnlyUserType.java

/**
 * DateOnlyUserType implements a Hibernate user type for {@link DateOnly} objects, providing the necessary details to
 * load and store to a database column.
 *
 * <pre><p/><table id="crc"><caption>CRC Card</caption>
 * <tr><th> Responsibilities <th> Collaborations

From source file com.thesett.catalogue.customtypes.EnumeratedStringAttributeUserType.java

/**
 * Implements a hibernate custom type mapping for enumerated attributes.
 *
 * <pre><p/><table id="crc"><caption>CRC Card</caption>
 * <tr><th> Responsibilities <th> Collaborations
 * <tr><td> Transform an enumerate string into a database column entry and the other way around.

From source file com.thesett.catalogue.customtypes.TimeOnlyUserType.java

/**
 * TimeOnlyUserType implements a hibernate custom type mapping for TimeOnly timestamps.
 *
 * <pre><p/><table id="crc"><caption>CRC Card</caption>
 * <tr><th> Responsibilities <th> Collaborations
 * <tr><td> Transform a timestamp in milliseconds into a database column entry and the other way around.

From source file com.thesett.util.hibernate.JsonUserType.java

/**
 * JsonUserType is a custom Hibernate type that transforms any object into Json for storage.
 *
 * <pre><p/><table id="crc"><caption>CRC Card</caption>
 * <tr><th> Responsibilities </th><th> Collaborations </th>
 * <tr><td> Store object graphs as JSON in a database column. </td></tr>

From source file com.thinkbiganalytics.jpa.TruncateStringUserType.java

/**
 * annotate your String column with something like this
 *
 * @Type(type = "com.thinkbiganalytics.jpa.TruncateStringUserType",parameters = {@Parameter(name = "length",value = "250")})
 */
public class TruncateStringUserType implements UserType, ParameterizedType {

From source file com.thinker.arch.common.repository.hibernate.type.CollectionToStringUserType.java

/**
 * List? List???? ??{@link org.apache.commons.beanutils.ConvertUtilsBean}
 * <p>User: Zhang Kaitao
 * <p>Date: 13-4-16 ?8:32
 * <p>Version: 1.0
 */

From source file com.thinker.arch.common.repository.hibernate.type.HashMapToStringUserType.java

/**
 * List? List???? ??{@link org.apache.commons.beanutils.ConvertUtilsBean}
 * <p>User: Zhang Kaitao
 * <p>Date: 13-4-16 ?8:32
 * <p>Version: 1.0
 */

From source file com.thinker.arch.common.repository.hibernate.type.JsonUserType.java

/**
 *  ?Json
 * <p>User: Zhang Kaitao
 * <p>Date: 13-4-16 ?8:32
 * <p>Version: 1.0
 */

From source file com.thinker.arch.common.repository.hibernate.type.ObjectSerializeUserType.java

/**
 * Object?/???
 * ?hex
 * ?http://jinnianshilongnian.iteye.com/blog/1497791
 * <p>User: Zhang Kaitao
 * <p>Date: 13-3-20 ?4:46

From source file com.unicornlabs.kabouter.historian.ListAsSQLArrayUserType.java

public abstract class ListAsSQLArrayUserType<T> implements UserType {

    private static final int SQL_TYPE = Types.ARRAY;
    private static final int[] SQL_TYPES = { SQL_TYPE };

    abstract protected Array getDataAsArray(Object value);