Class NamedBasicTypeImpl<J>

All Implemented Interfaces:
BasicType<J>, Type<J>, Serializable, BasicValuedMapping, Bindable, JdbcMapping, JdbcMappingContainer, MappingModelExpressible, MappingType, SqlExpressible, ValueMapping, BasicDomainType<J>, DomainType<J>, SimpleDomainType<J>, BindableType<J>, OutputableType<J>, ReturnableType<J>, SqmExpressible<J>, AdjustableBasicType<J>, BasicType<J>, JavaTypedExpressible, ProcedureParameterExtractionAware<J>, ProcedureParameterNamedBinder<J>, Type
Direct Known Subclasses:
ImmutableNamedBasicTypeImpl

public class NamedBasicTypeImpl<J> extends BasicTypeImpl<J>
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from class: BasicTypeImpl
      BasicTypeImpl produces a name whose sole purpose is to be used as part of interpreting Envers-produced mappings. We want to use the same exact BasicTypeImpl *instance* in the audit mapping (Envers) as is used in the audited (ORM) mapping. The name is in the form `basicType@${u}(${o},${r})`, where
      1. ${u} is a unique number
      2. ${o} is the mapped Java type
      3. ${r} is the mapped SQL type (JDBC type code)
      `basicType@${u}` is enough to uniquely identify this type instance; the Java Type and JDBC type code are informational E.g. `basicType@321(java.lang.String,12)`
      Specified by:
      getName in interface Type
      Overrides:
      getName in class BasicTypeImpl<J>
      Returns:
      the Hibernate type name