List of usage examples for org.hibernate.usertype UserType interface-usage
From source file alma.hibernate.util.HibernateXmlType.java
/**
* A hibernate UserType that supports the Oracle XMLTYPE.
*
* Because we store the XMLTYPE as a String in our domain class it seems
* adequate to inherit {@link StringClobType}'s implementation of everything except:
* nullSafeGet() and nullSafeSet()
From source file ar.com.zauber.commons.repository.utils.URIUserType.java
/**
* Sabe serializar {@link URI}s como columnas de texto
*
* @author Marcelo Turrin
* @since Jun 22, 2009
*/
From source file bard.db.enums.hibernate.AbstractEnumUserType.java
/**
* Based the implementation code found at https://code.google.com/p/hibernate-enum-usertype/
* <p/>
* Modified it so, subclasses really, only need to pass in their type, no need for creating a map to handle
* converting.
*
From source file br.com.insula.opes.hibernate.usertype.ImmutableUserType.java
public abstract class ImmutableUserType implements UserType, Serializable { private static final long serialVersionUID = 1L; @Override public Object assemble(Serializable cached, Object owner) throws HibernateException {
From source file br.com.insula.opes.hibernate.usertype.MutableUserType.java
public abstract class MutableUserType implements UserType, Serializable { private static final long serialVersionUID = 1L; @Override public boolean isMutable() {
From source file br.com.produtec.app.usertype.ImmutableUserType.java
public abstract class ImmutableUserType implements UserType, Serializable { private static final long serialVersionUID = 1L; @Override public Object assemble(Serializable cached, Object owner) throws HibernateException {
From source file br.com.tcc.common.support.GenericEnumUserType.java
/** * Referencia: * http://appfuse.org/display/APF/Java+5+Enums+Persistence+with+Hibernate Vide * Ticket #90. */ public class GenericEnumUserType implements UserType, ParameterizedType {
From source file ca.ualberta.physics.cssdp.dao.MnemonicType.java
/** * Marshals Mnemonics back and forth to SQL data type VARCHAR */ public class MnemonicType implements UserType { @Override
From source file ca.ualberta.physics.cssdp.dao.type.PersistentDateTime.java
public class PersistentDateTime implements UserType { @Override public int[] sqlTypes() { return new int[] { java.sql.Types.TIMESTAMP }; }
From source file ca.ualberta.physics.cssdp.dao.type.PersistentLocalDate.java
public class PersistentLocalDate implements UserType { @Override public int[] sqlTypes() { return new int[] { java.sql.Types.DATE }; }