List of usage examples for org.hibernate.usertype EnhancedUserType interface-usage
From source file de.iteratec.iteraplan.persistence.util.StringEnumUserType.java
/**
* Parameterized type for mapping a Java 5 Enum with string values.
* <p>
* This allows you to avoid the need to define a concrete UserType instance for every enum
* that you have. Contrary to <a>http://www.hibernate.org/272.html</a> this class allows for
* the value in the database to be different from the Enum constant name.
From source file de.taimos.dvalin.jpa.JodaDateTimeType.java
public class JodaDateTimeType implements EnhancedUserType, Serializable, StringRepresentableType<DateTime> { /** */ public static final JodaDateTimeType INSTANCE = new JodaDateTimeType(); private static final long serialVersionUID = -7443774477681244536L;
From source file de.tudarmstadt.ukp.lmf.hibernate.EnumUserType.java
/**
* Custom {@link EnumUserType} for all enumerators in the UBY-LMF model.
*
* @author Yevgen Chebotar
*
*/
From source file dk.teachus.backend.dao.hibernate.PersistentDateMidnight.java
/** * Based on {@link PersistentDateTime}, because Joda-Time Hibernate doesn't include this type. */ public class PersistentDateMidnight implements EnhancedUserType, Serializable { private static final long serialVersionUID = 1L;
From source file edu.northwestern.bioinformatics.studycalendar.domain.tools.hibernate.EnumUserType.java
/** * Maps Java 5 Enums, because it's an EnhancedUserType it can be used in discriminator columns * @link http://www.hibernate.org/272.html * @author Gavin King */ public class EnumUserType implements EnhancedUserType, ParameterizedType {
From source file edu.utn.frba.grupo5303.serverenviolibre.config.LocalDateTimeUserType.java
/** * * @author flpitu88 */ public class LocalDateTimeUserType implements EnhancedUserType, Serializable {
From source file edu.utn.frba.grupo5303.serverenviolibre.config.LocalDateUserType.java
/** * * @author flpitu88 */ public class LocalDateUserType implements EnhancedUserType, Serializable {
From source file gr.interamerican.bo2.impl.open.hibernate.types.AbstractUserType.java
/** * Base implementation for custom Hibernate UserTypes. */ public abstract class AbstractUserType implements EnhancedUserType, ParameterizedType { public boolean equals(Object x, Object y) throws HibernateException {
From source file gr.interamerican.bo2.impl.open.hibernate.types.OneBasedEnumUserType.java
/**
* Custom enum type used to persist the enum ordinal value incremented by one.
*
* Make sure that in the hibernate mapping the corresponding property and column
* are marked with the attribute not-null="false".
*
From source file net.awired.generic.jpa.helper.HibernateEnumAdapter.java
public abstract class HibernateEnumAdapter<T extends Enum<T> & Identified> implements EnhancedUserType { private static final int[] SQL_TYPES = { Types.NUMERIC }; private Class<T> clazz;