Class Iso8601MonthType

All Implemented Interfaces:
Serializable, org.hibernate.metamodel.model.domain.DomainType<Month>, org.hibernate.query.BindableType<Month>, org.hibernate.query.sqm.SqmExpressible<Month>, org.hibernate.type.Type, org.hibernate.usertype.DynamicParameterizedType, org.hibernate.usertype.EnhancedUserType<Month>, org.hibernate.usertype.ParameterizedType, org.hibernate.usertype.UserType<Month>

Maps a Month object type to a INT column type which is saved as value from 1 (January) to 12 (December), according to the ISO 8601 standard.
Author:
Martin Panzer
See Also:
  • Field Details

  • Constructor Details

    • Iso8601MonthType

      public Iso8601MonthType()
    • Iso8601MonthType

      public Iso8601MonthType(Configuration configuration)
    • Iso8601MonthType

      public Iso8601MonthType(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<Month>
    • fromStringValue

      public Month fromStringValue(CharSequence sequence) throws org.hibernate.HibernateException
      Throws:
      org.hibernate.HibernateException