List of usage examples for org.hibernate.usertype EnhancedUserType interface-usage
From source file com.opengamma.masterdb.batch.HbComputationTargetType.java
/** * A Hibernate type wrapper for {@link ComputationTargetType} that uses the string form of the type for storage. */ public class HbComputationTargetType implements EnhancedUserType { public HbComputationTargetType() {
From source file com.opengamma.util.db.hibernate.types.enums.EnumType.java
/** * An enum type for Hibernate. * * @param <T> the enum type */ public class EnumType<T extends Enum<T>> implements EnhancedUserType, ParameterizedType {
From source file com.opengamma.util.db.hibernate.types.enums.StringValuedEnumType.java
/** * An enum type for Hibernate. * * @param <T> the enum type */ public class StringValuedEnumType<T extends Enum<T> & StringValuedEnum> // CSIGNORE
From source file com.opengamma.util.db.hibernate.types.PersistentInstant.java
/** * Persist {@link javax.time.Instant} via hibernate as a TIMESTAMP. */ public class PersistentInstant implements EnhancedUserType { /**
From source file com.opengamma.util.db.hibernate.types.PersistentObjectId.java
/** * Persist {@link com.opengamma.id.ObjectId} via hibernate as a String. */ public class PersistentObjectId implements EnhancedUserType { /**
From source file com.opengamma.util.db.hibernate.types.PersistentUniqueId.java
/** * Persist {@link com.opengamma.id.UniqueId} via hibernate as a String. */ public class PersistentUniqueId implements EnhancedUserType { /**
From source file com.opengamma.util.db.hibernate.types.PersistentVersionCorrection.java
/** * Persist {@link com.opengamma.id.VersionCorrection} via hibernate as a String. * */ public class PersistentVersionCorrection implements EnhancedUserType {
From source file com.pushinginertia.commons.domain.usertype.MapAsJsonUserType.java
/** * Custom hibernate user type to map a JSON-encoded map within a column into a Java Map<String, Object> instance. */ public class MapAsJsonUserType implements EnhancedUserType, Serializable { private static final long serialVersionUID = 1L; private static final int[] SQL_TYPES = new int[] { Types.VARCHAR };
From source file com.riversoforion.lena.hibernate.UrlUserType.java
/**
* Implements a {@linkplain org.hibernate.usertype.UserType Hibernate UserType}
* for converting between a VARCHAR database value and a {@linkplain URL URL}.
* This type is {@linkplain EnhancedUserType enhanced}, so it can be used as an
* ID or in XML serialization/deserialization. It is also
* {@linkplain LoggableUserType loggable}, and will scrub any credentials
From source file com.seethayya.shoppingcart.util.GenericEnumUserType.java
/**
* Implements a generic enum user type identified / represented by a single identifier / column.
* <p/>
* <p/>
* <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