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

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

Introduction

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

Usage

From source file alma.hibernate.util.StringEnumUserType.java

/**
 * Custom mapping type for string-backed enumerations.
 *
 * Taken from "Java Persistence with Hibernate", Christian Bauer and
 * Gavin King, Manning, ISBN 1-932394-88-5.
 *

From source file ch.algotrader.hibernate.HibernateEnumType.java

/**
 * A Hibernate UserType for Java5 enumerations. Taken from
 * <a href="http://www.hibernate.org/272.html">Java 5 EnumUserType</a>.
 */
public class HibernateEnumType implements EnhancedUserType, ParameterizedType {

From source file ch.wisv.areafiftylan.utils.LocalDateTimeUserType.java

public class LocalDateTimeUserType implements EnhancedUserType, Serializable {

    private static final int[] SQL_TYPES = new int[] { Types.TIMESTAMP };

    @Override
    public int[] sqlTypes() {

From source file com.anasoft.os.daofusion.bitemporal.PersistentDateTime.java

/**
 * Persist {@link org.joda.time.DateTime} via Hibernate.
 *
 * @author Mario Ivankovits (mario@ops.co.at)
 */
public class PersistentDateTime implements EnhancedUserType {

From source file com.brienwheeler.lib.db.joda.time.PersistentDateTimeAsBigInt.java

/**
 * Persist {@link org.joda.time.DateTime} via hibernate as a BIGINT.
 * 
 * @author Martin Grove (marting@optrak.co.uk))
 */
public class PersistentDateTimeAsBigInt implements EnhancedUserType, Serializable {

From source file com.jhkt.playgroundArena.db.sql.mysql.beans.extentionPoints.RegularExpressionUserType.java

/**
 * @author Ji Hoon Kim
 */
public class RegularExpressionUserType implements EnhancedUserType, ParameterizedType {

    private static final StringType STRING_TYPE = new StringType();

From source file com.manydesigns.portofino.database.StringBooleanType.java

/**
 * @author Paolo Predonzani     - paolo.predonzani@manydesigns.com
 * @author Angelo Lupo          - angelo.lupo@manydesigns.com
 * @author Giampiero Granatella - giampiero.granatella@manydesigns.com
 * @author Alessio Stalla       - alessio.stalla@manydesigns.com
 */

From source file com.mg.framework.support.orm.EnumUserType.java

/**
 * @author Oleg V. Safonov
 * @version $Id: EnumUserType.java,v 1.1 2006/11/02 15:57:59 safonov Exp $
 */
public class EnumUserType implements EnhancedUserType, ParameterizedType {
    private Class<? extends Enum> enumClass;

From source file com.moss.hibernate.enumeration.AbstractEnumerationUserType.java

public abstract class AbstractEnumerationUserType implements EnhancedUserType, Serializable {
    private static final int[] SQL_TYPES = { Types.VARCHAR };

    protected abstract Class getReturnedClass();

    protected abstract Object getInstance(String name);

From source file com.moss.jodapersist.YearMonthDayUserType.java

/**
 * <p>
 *    <b>
 *     <i>
 *      NOTE: Use one of the sqltype-specific subclasses
 *     </i>