File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

support for MySQL ENUMs in hbm2hbmxml and hbm2java

 
Philippe Desrosiers
Ranch Hand
Posts: 138
  • 0
  • 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