Joined: Mon Jul 10, 2006 5:52 pm Posts: 6 Location: Bay Area, California, USA
|
You can use a char member variable in your java class & map it with access=field. Lazy initialization of the enum variable can be done from the char variable, and setting the enum variable can set the char as well.
I was faced with a similar situation where I want to use the wonderful java 5 enums and I ended up having an int type shadow variable holding the ordinal value and I use this in the mapping documents.
Best Wishes
Ram
|
|