List of usage examples for org.hibernate.usertype EnhancedUserType interface-usage
From source file org.joda.time.contrib.hibernate.PersistentLocalTimeAsString.java
/** * Persist {@link org.joda.time.LocalDate} via hibernate. * * @author Mario Ivankovits (mario@ops.co.at) */ public class PersistentLocalTimeAsString implements EnhancedUserType, Serializable {
From source file org.joda.time.contrib.hibernate.PersistentLocalTimeAsTime.java
/**
* Persist {@link org.joda.time.LocalDate} via hibernate.
* This uses a simple integer to store the time as milliseconds since 1970-1-1.
* The milliseconds will survive.
*
* @author Mario Ivankovits (mario@ops.co.at)
From source file org.joda.time.contrib.hibernate.PersistentLocalTimeAsTimestamp.java
/**
* Persist {@link org.joda.time.LocalDate} via hibernate. This uses a standard
* Timestamp (DateTime) field to store the partial.
*
* @author Daniel Jurado (jurado@gmail.com)
*/
From source file org.joda.time.contrib.hibernate.PersistentLocalTimeExact.java
/** * Persist {@link org.joda.time.LocalDate} via hibernate. * * @author Mario Ivankovits (mario@ops.co.at) */ public class PersistentLocalTimeExact implements EnhancedUserType, Serializable {
From source file org.joda.time.contrib.hibernate.PersistentTimeOfDay.java
/**
* Persist {@link org.joda.time.TimeOfDay} via hibernate.
* This uses java.sql.Time and the time datatype of your database.
* Notice: You might loose the milliseconds part.
*
* @author Mario Ivankovits (mario@ops.co.at)
From source file org.joda.time.contrib.hibernate.PersistentTimeOfDayExact.java
/**
* Persist {@link org.joda.time.TimeOfDay} via hibernate.
* This uses a simple integer to store the time as milliseconds since 1970-1-1.
* The milliseconds will survive.
*
* @author Mario Ivankovits (mario@ops.co.at)
From source file org.joda.time.contrib.hibernate.PersistentYearMonthDay.java
/** * Persist {@link org.joda.time.YearMonthDay} via hibernate. * * @author Mario Ivankovits (mario@ops.co.at) */ public class PersistentYearMonthDay implements EnhancedUserType, Serializable {
From source file org.jsecurity.samples.sprhib.eis.hibernate.GenericEnumUserType.java
/**
* Implements a generic enum user type identified / represented by a single identifier / column.
*
*
* <ul> <li>The enum type being represented by the certain user type must be set by using the
* 'enumClass' property.</li> <li>The identifier representing a enum value is retrieved by the
From source file org.jtransfo.demo.domain.EnumUserType.java
/** * Custom mapping for enum using {@link Enum#name()}.. */ public class EnumUserType implements EnhancedUserType, ParameterizedType { private Class<Enum> enumClass;
From source file org.kuali.continuity.domain.ext.StringValuedEnumType.java
@SuppressWarnings("unchecked") public class StringValuedEnumType<T extends Enum & StringValuedEnum> implements EnhancedUserType, ParameterizedType { /** * Enum class for this particular user type.