Hi All!
I have an Enum that has String values. I want to map it in my mysql DB in a table. It has static strings.
I am using this example to accomplish this:
http://community.jboss.org/wiki/UserTypeForPersistingAnEnumWithAVARCHARColumnWhat I am doing is I am using annotations like @Entity. The main goal is to have entities marked with @Entity and all the JPA annotations for table column mappings and when i create the Session Factory for Hibernate, it generates the tables in my DB so my enum class also is generated with the table and has the String values pre defined in the Db like a lookup table.
Thanks in advance.
Syed...