This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

support for MySQL ENUMs in hbm2hbmxml and hbm2java

 
Philippe Desrosiers
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how to generate MyClass.hmb.xml and MyClass.java files that will include support for MySLQ Enum column type? I'm using Jdk5 mode (no ejb annotations), and these tools generate the corresponding property as "string". Instead, I'd like hbm2hbmxml to force use/creation of a corresponding Java Enum. Is there any way to do this without manually modifying the generated hbm.xml or java files?

thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic