public class EnumStringType
extends org.hibernate.type.EnumType
<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>
we now have
<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>
| Constructor and Description |
|---|
EnumStringType() |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromXMLString(String xmlValue)
Original
EnumType.fromXMLString(String) tries to do numeric conversion first
and then only in case of failure it does what we need. |
void |
setParameterValues(Properties parameters) |
public void setParameterValues(Properties parameters)
setParameterValues in interface org.hibernate.usertype.ParameterizedTypesetParameterValues in class org.hibernate.type.EnumTypepublic Object fromXMLString(String xmlValue)
EnumType.fromXMLString(String) tries to do numeric conversion first
and then only in case of failure it does what we need.fromXMLString in interface org.hibernate.usertype.EnhancedUserTypefromXMLString in class org.hibernate.type.EnumTypeCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.