Class EnumStringType
- java.lang.Object
-
- org.hibernate.type.EnumType
-
- com.atlassian.bamboo.hibernate.type.EnumStringType
-
- All Implemented Interfaces:
Serializable
,org.hibernate.type.spi.TypeConfigurationAware
,org.hibernate.usertype.DynamicParameterizedType
,org.hibernate.usertype.EnhancedUserType
,org.hibernate.usertype.LoggableUserType
,org.hibernate.usertype.ParameterizedType
,org.hibernate.usertype.UserType
@Deprecated public class EnumStringType extends org.hibernate.type.EnumType
Deprecated.since 6.5 use @Enumerated(EnumType.STRING) insteadSpecialization of Hibernate's EnumType that always stores value in string format thus allowing us to avoid cumbersome part of configuration. So instead of
we now have<property name="propertyName" column="COLUMN_NAME"> <type name="org.hibernate.type.EnumType"> <param name="enumClass">com.atlassian.bamboo.enum.class.name</param> <param name="type">12</param> <!-- Types.VARCHAR == 12 --> </type> </property>
<property name="propertyName" column="COLUMN_NAME"> <type name="com.atlassian.bamboo.hibernate.type.EnumStringType"> <param name="enumClass">com.atlassian.bamboo.enum.class.name</param> </type> </property>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumStringType()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
fromXMLString(String xmlValue)
Deprecated.OriginalEnumType.fromXMLString(String)
tries to do numeric conversion first and then only in case of failure it does what we need.void
setParameterValues(Properties parameters)
Deprecated.
-
-
-
Method Detail
-
setParameterValues
public void setParameterValues(Properties parameters)
Deprecated.- Specified by:
setParameterValues
in interfaceorg.hibernate.usertype.ParameterizedType
- Overrides:
setParameterValues
in classorg.hibernate.type.EnumType
-
fromXMLString
public Object fromXMLString(String xmlValue)
Deprecated.OriginalEnumType.fromXMLString(String)
tries to do numeric conversion first and then only in case of failure it does what we need.- Specified by:
fromXMLString
in interfaceorg.hibernate.usertype.EnhancedUserType
- Overrides:
fromXMLString
in classorg.hibernate.type.EnumType
-
-