Package org.hibernate.usertype
An API for user-defined custom types which extend the set of built-in
types defined in
org.hibernate.type
.
A custom type might map a single column, or it might map multiple columns.
- See Also:
UserType
,CompositeUserType
,org.hibernate.type
- API Note:
- Historically,
UserType
was the most important extension point in Hibernate, andCompositeUserType
was much less popular. But in modern Hibernate, the terrain formerly occupied byUserType
has been encroached, first byAttributeConverter
, and then by the new "compositional" approach to basic types. Contrariwise,CompositeUserType
has been redesigned and is now more powerful and much easier to use.
-
Interface Summary Interface Description CompositeUserType<J> This interface should be implemented by user-defined custom types that have persistent attributes and can be thought of as something more like an embeddable object.DynamicParameterizedType Types which implement this interface will haveParameterizedType.setParameterValues(Properties)
called with an instance of the classDynamicParameterizedType.ParameterType
instead of the key "org.hibernate.type.ParameterType".DynamicParameterizedType.ParameterType EnhancedUserType<J> A custom type that may function as an identifier or discriminator typeLoggableUserType Marker interface for user types which want to perform custom logging of their corresponding valuesParameterizedType Support for parameterizable types.UserCollectionType A custom type for mapping user-written classes which implementPersistentCollection
.UserType<J> This interface should be implemented by user-defined custom types that extend the set of types defined inorg.hibernate.type
.UserVersionType<T> A user type that may be used for a version property -
Class Summary Class Description BaseUserTypeSupport<T> StaticUserTypeSupport<T> UserTypeLegacyBridge ConvenienceUserType
implementation which mimics the legacy@Type
annotation which was based on thehbm.xml
mapping's string-based type support.UserTypeSupport<T>