File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
Simple Java Code Generating tools
Hibernate vs other ORMs
"casting" an int to an enum type
Any plugin for hibernate
Can Java files be compiled using JRE if we don't have JDK?