Class YearMonthTimestampType

java.lang.Object
io.hypersistence.utils.hibernate.type.ImmutableType<T>
io.hypersistence.utils.hibernate.type.DescriptorImmutableType<YearMonth,org.hibernate.type.descriptor.jdbc.TimestampJdbcType,YearMonthTypeDescriptor>
io.hypersistence.utils.hibernate.type.basic.YearMonthTimestampType
All Implemented Interfaces:
Serializable, org.hibernate.metamodel.model.domain.DomainType<YearMonth>, org.hibernate.query.BindableType<YearMonth>, org.hibernate.query.sqm.SqmExpressible<YearMonth>, org.hibernate.type.Type, org.hibernate.usertype.DynamicParameterizedType, org.hibernate.usertype.EnhancedUserType<YearMonth>, org.hibernate.usertype.ParameterizedType, org.hibernate.usertype.UserType<YearMonth>

public class YearMonthTimestampType extends DescriptorImmutableType<YearMonth,org.hibernate.type.descriptor.jdbc.TimestampJdbcType,YearMonthTypeDescriptor>
Maps a Java YearMonth object to a TIMESTAMP column type.

Author:
Vlad Mihalcea
See Also:
  • Field Details

  • Constructor Details

    • YearMonthTimestampType

      public YearMonthTimestampType()
    • YearMonthTimestampType

      public YearMonthTimestampType(Configuration configuration)
    • YearMonthTimestampType

      public YearMonthTimestampType(org.hibernate.type.spi.TypeBootstrapContext typeBootstrapContext)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.hibernate.type.Type
      Overrides:
      getName in class ImmutableType<YearMonth>
    • fromStringValue

      public YearMonth fromStringValue(CharSequence charSequence) throws org.hibernate.HibernateException
      Throws:
      org.hibernate.HibernateException