java.lang.Object
io.hypersistence.utils.hibernate.type.MutableType<Year,org.hibernate.type.descriptor.jdbc.SmallIntJdbcType,YearTypeDescriptor>
io.hypersistence.utils.hibernate.type.basic.YearType
All Implemented Interfaces:
org.hibernate.metamodel.mapping.BasicValuedMapping, org.hibernate.metamodel.mapping.Bindable, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.metamodel.mapping.MappingModelExpressible, org.hibernate.metamodel.mapping.SqlExpressible, org.hibernate.metamodel.mapping.ValueMapping, org.hibernate.query.BindableType<Year>, org.hibernate.query.sqm.SqmExpressible<Year>, org.hibernate.type.descriptor.java.JavaTypedExpressible, org.hibernate.usertype.UserType<Year>

public class YearType extends MutableType<Year,org.hibernate.type.descriptor.jdbc.SmallIntJdbcType,YearTypeDescriptor>
Maps a Java Year object to an INT column type.

For more details about how to use it, check out this article on vladmihalcea.com.

Author:
Vlad Mihalcea
  • Field Details

    • INSTANCE

      public static final YearType INSTANCE
  • Constructor Details

    • YearType

      public YearType()
    • YearType

      public YearType(Configuration configuration)
    • YearType

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

    • getName

      public String getName()