List of usage examples for org.hibernate.type LiteralType interface-usage
From source file com.welflex.model.hibernate.LocalDateUserType.java
public class LocalDateUserType implements UserType, LiteralType { public int[] sqlTypes() { return new int[] { Types.DATE }; }
From source file hibernate.type.InstantType.java
/** * A type that maps between {@link java.sql.Types#TIMESTAMP TIMESTAMP} and {@link java.time.LocalDateTime}. * * @author Steve Ebersole */ public class InstantType extends AbstractSingleColumnStandardBasicType<Instant>
From source file io.pivotal.strepsirrhini.chaosloris.data.InstantType.java
public final class InstantType extends AbstractSingleColumnStandardBasicType<Instant> implements VersionType<Instant>, LiteralType<Instant> { static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.S 'Z'", Locale.ENGLISH);
From source file org.jadira.usertype.spi.shared.DstSafeDateType.java
public class DstSafeDateType extends AbstractSingleColumnStandardBasicType<Date> implements IdentifierType<Date>, LiteralType<Date> { private static final long serialVersionUID = 669738618020424223L; public static final DstSafeDateType INSTANCE = new DstSafeDateType();
From source file org.jadira.usertype.spi.shared.DstSafeTimestampType.java
public class DstSafeTimestampType extends AbstractSingleColumnStandardBasicType<Date> implements VersionType<Date>, LiteralType<Date> { private static final long serialVersionUID = -3665273920874664942L; public static final DstSafeTimestampType INSTANCE = new DstSafeTimestampType();
From source file org.jadira.usertype.spi.shared.DstSafeTimeType.java
public class DstSafeTimeType extends AbstractSingleColumnStandardBasicType<Date> implements LiteralType<Date> { private static final long serialVersionUID = -3665273920874664942L; public static final DstSafeTimeType INSTANCE = new DstSafeTimeType();
From source file org.jasig.ssp.util.hibernate.ConfigurableDateType.java
public class ConfigurableDateType extends AbstractSingleColumnStandardBasicType<Date> implements IdentifierType<Date>, LiteralType<Date> { public ConfigurableDateType(DateTypeDescriptor descriptor) { super(descriptor, JdbcDateTypeDescriptor.INSTANCE); }
From source file org.jasig.ssp.util.hibernate.ConfigurableTimestampType.java
public class ConfigurableTimestampType extends AbstractSingleColumnStandardBasicType<Date> implements VersionType<Date>, LiteralType<Date> { public ConfigurableTimestampType(TimestampTypeDescriptor descriptor) { super(descriptor, JdbcTimestampTypeDescriptor.INSTANCE); }
From source file org.n52.series.db.ZonalTimestampType.java
/**
* A type that maps between {@link java.sql.Types#TIMESTAMP TIMESTAMP} and
* {@link java.sql.Timestamp}. Delegates to Hibernate's TimestampType, but
* specifies ZonalTimestampTypeDescriptor as the SqlTypeDescriptor so that times
* from the database can be configured to have a specific timezone.
*
From source file org.n52.sos.ds.hibernate.type.UtcTimestampType.java
/**
* A type that maps between {@link java.sql.Types#TIMESTAMP TIMESTAMP} and
* {@link java.sql.Timestamp}. Delegates to Hibernate's TimestampType, but
* specifies UtcTimestampTypeDescriptor as the SqlTypeDescriptor so that times
* from the database are always retrieved in UTC.
*