max wrote:
whaot? i'm telling you how you map enums (by a customizable customtype) and if you dont want to write it your self you go look in the annotations and ejb3 project on how that is done.
As I stated before, again with deference, we would like support for enums
without having to write custom types.
I'm not trying to degrade the conversation here, but you're repeating what Michael said back in August.
This thread was picked up again because someone had hoped (as did I) that this was included in 3.1. Which it has not been.
I wanted to make sure a core issue of the thread (being that we would like support for enums
without having to write custom types) is re-iterated.
I apologize if you took offense to my reply.
Code:
What is the difference between *true* jdk5 support and you writing:
<property name="anEnum">
<type="org.hibernate.type.EnumType">
<param name="enumclass">YourEnumClass</param>
</type>
</property>
If that's all it takes, hoorah. But as I understand org.hibernate.type.EnumType, that's not all that has to be done. I may be completely mistaken, which happens often. I'll review and try to get it to work new school vanilla style.
Quote:
And the UserType system have been here since hibernate were born (almost) so you can trust me when i say it will be around a long time yet ;)
Noted. As I hope you note the nature of my post above.