Class YearMonthEpochType

java.lang.Object
io.hypersistence.utils.hibernate.type.ImmutableType<T>
io.hypersistence.utils.hibernate.type.DescriptorImmutableType<YearMonth,org.hibernate.type.descriptor.jdbc.SmallIntJdbcType,YearMonthEpochTypeDescriptor>
io.hypersistence.utils.hibernate.type.basic.YearMonthEpochType
All Implemented Interfaces:
Serializable, org.hibernate.query.BindableType<YearMonth>, org.hibernate.query.sqm.SqmExpressible<YearMonth>, org.hibernate.type.Type, org.hibernate.usertype.EnhancedUserType<YearMonth>, org.hibernate.usertype.UserType<YearMonth>

public class YearMonthEpochType extends DescriptorImmutableType<YearMonth,org.hibernate.type.descriptor.jdbc.SmallIntJdbcType,YearMonthEpochTypeDescriptor>
Maps a Java YearMonth object to an small and continuous INT column type which defines the months that passed since the Unix epoch.
Author:
Vlad Mihalcea
See Also:
  • Field Details

  • Constructor Details

    • YearMonthEpochType

      public YearMonthEpochType()
    • YearMonthEpochType

      public YearMonthEpochType(Configuration configuration)
    • YearMonthEpochType

      public YearMonthEpochType(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