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,
UserTypewas the most important extension point in Hibernate, andCompositeUserTypewas much less popular. But in modern Hibernate, the terrain formerly occupied byUserTypehas been encroached, first byAttributeConverter, and then by the new "compositional" approach to basic types. Contrariwise,CompositeUserTypehas 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.Deprecated, for removal: This API element is subject to removal in a future version.This very old approach was never properly implemented in all contexts, and never actually achieved the type safety it aimed for.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 implement
PersistentCollection.UserType<J>This interface should be implemented by user-defined custom types that extend the set of types defined inorg.hibernate.type.ConvenienceUserTypeimplementation which mimics the legacy@Typeannotation which was based on thehbm.xmlmapping's string-based type support.A user type that may be used for a version property