To map enums in Hibernate you should use UserType.
Here is already made class with UserType:
And here is the mapping of the "type" property of one class:
I don't know how it should be with annotations, but you can make your code according this example.
posted 10 years ago
thanks stanislav for replying my post but i am looking a way to do it with annotations. I googled it but couldn't find anything which matches my problem.
Can anyone please tell me how to solve this issue.
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad: