aspose file tools*
The moose likes Object Relational Mapping and the fly likes support for MySQL ENUMs in hbm2hbmxml and hbm2java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "support for MySQL ENUMs in hbm2hbmxml and hbm2java" Watch "support for MySQL ENUMs in hbm2hbmxml and hbm2java" New topic
Author

support for MySQL ENUMs in hbm2hbmxml and hbm2java

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: support for MySQL ENUMs in hbm2hbmxml and hbm2java