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.ParameterizedType
setParameterValues
in class org.hibernate.type.EnumType
public 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.EnhancedUserType
fromXMLString
in class org.hibernate.type.EnumType
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.