Package org.hibernate.usertype
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:
- 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.
-
ClassDescriptionThis 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.Types which implement this interface will have
ParameterizedType.setParameterValues(Properties)
called with an instance of the classDynamicParameterizedType.ParameterType
instead of the key "org.hibernate.type.ParameterType".A custom type that may function as an identifier or discriminator typeMarker interface for user types which want to perform custom logging of their corresponding valuesSupport for parameterizable types.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
.ConvenienceUserType
implementation which mimics the legacy@Type
annotation which was based on thehbm.xml
mapping's string-based type support.A user type that may be used for a version property