Joined: Sun Mar 30, 2008 1:37 pm Posts: 5
|
I have the field status in one of my classes
It has enum type:
public enum Status {
OPENED,
CLOSED;
}
I map it this way
<property name="status" not-null="true">
<type name="org.hibernate.type.EnumType">
<param name="enumClass">com.javaxshop.domain.manager.pojo.ShopOrderStatus</param>
<param name="sqlType">12</param>
</type>
</property>
Hibernate generates it this way
status integer not null
But I want to has string type in my db for enum type.
How I can get it?
|
|