public class HibernateTypeLookup extends Object
| Constructor and Description |
|---|
HibernateTypeLookup() |
| Modifier and Type | Method and Description |
|---|---|
static <K> org.hibernate.type.AbstractSingleColumnStandardBasicType<K> |
getForIdLookupType(Class<? extends IdLookup<K>> clazz)
Retrieves the hibernate Type instance that should be used to convert the database value into an object and the reverse operation.
|
public static <K> org.hibernate.type.AbstractSingleColumnStandardBasicType<K> getForIdLookupType(Class<? extends IdLookup<K>> clazz)
K - The type of id used to designate an enum value in the databaseclazz - The type that implements the IdLookup interfaceIllegalArgumentExceptionAbstractSingleColumnStandardBasicTypeCopyright © 2020. All rights reserved.