public class GenericEnumUserType
extends com.atlassian.hibernate.extras.type.GenericEnumUserType
GenericEnumUserType
from the atlassian-hibernate-extras
library. It is retained in Crowd only for backward compatibility.
In addition to providing backward compatibility for the class being referenced, this class also applies the
historical Crowd defaults for the identifierMethod
and valueOf
methods. In the base class, the
defaults are "getId" and "fromId", respectively; for this class, they are "name" and "valueOf". While the defaults
used here are satisfied automatically by every Java enumeration, they are weak for refactoring; renaming an enum
constant requires a database upgrade task to adjust previous rows.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_IDENTIFIER_METHOD_NAME |
static String |
DEFAULT_VALUE_OF_METHOD_NAME |
Constructor and Description |
---|
GenericEnumUserType() |
Modifier and Type | Method and Description |
---|---|
void |
setParameterValues(Properties parameters) |
public static final String DEFAULT_IDENTIFIER_METHOD_NAME
public static final String DEFAULT_VALUE_OF_METHOD_NAME
public void setParameterValues(Properties parameters)
setParameterValues
in interface org.hibernate.usertype.ParameterizedType
setParameterValues
in class com.atlassian.hibernate.extras.type.GenericEnumUserType
Copyright © 2017 Atlassian. All rights reserved.