HI
Due to client restrictions I've to rewrite part of my code which was earlier written in Java 5, now in java 1.4. I was using java 5 enums with hibernate. For example,
Java 5 enum:
Code:
public enum AType{
SHOW,HIDE;
}
AType is a property of some java bean A.
in the hbm file I have:
Code:
<hibernate-mapping auto-import="true" default-lazy="false">
<typedef name="AType" class='GenericEnumUserType'>
<param name="enumClass">AType</param>
</typedef>
<class name="A" table="a">
<property name="aType" type="AType" column="aType"/>
</class>
</hibernate-mapping>
Everything was working fine in java 5, now, how do I move the same functionality to 1.4? Pls help[/code]