"[EMAIL PROTECTED]" wrote : Persistence of JDK 1.5 enums has been deeply discussed in Persisting jdk1.5 enums today, a topic in the Hibernate forum. It looks like Hibernate annotations comes with a user type for enums. | | For jBPM we have to figure out a way not to introduce a new VariableInstance subclass just for enums, and retain JDK 1.4.2 compatibility.
Sounds like there's some thinking going on for this. That's a good thing (tm). What, if anything, can I do now? One note - why would JDK 1.4.2 compatibility be an issue, since Enums aren't supported < 1.5? What would the solution look like if 1.4.2 compatibility were not an issue? I seem to have a working EnumConverter for JBPM, but I can't figure out a way of letting Hibernate know how to convert to/from an enum when I'm not calling through the JBPM API. i.e. I cannot create a Criteria and use an enum directly in a variableInstances subcriteria. Incidentally, I can't even seem to pass in the String value created by the Converter (a kludge) - Hibernate doesn't throw an Exception, but it returns zero rows. Not sure why this is. The SQL query Hibernate generates (logging=DEBUG) seems to work when I run it manually. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943260#3943260 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943260 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user