My enum mappings work fine except for when used as parameters in EJB-QL 
queries, so I guess I've got a completely different problem, though symptoms 
looked the same when I searched the forum. I misread the comments below is 
thinking that it was EJB-QL issues that would be addressed.

Looks like I get a serialized enum stuffed into the parameter, rather than the 
ordinal or name as annotation declares. This from the MySQL query log, at the 
point the parameter is inserted:

'’\0~r\0\'example.MyEnum\0\0\0\0\0\0\0\0\0\0xr\0java.lang.Enum\0\0\0\0\0\0\0\0\0\0xpt\0\rTEST_ENUM_TYPE'

I'm using JBoss 4.0.4RC1, MySQL 5.0.18, and MySQL-connector 3.1.12. Use of 
ordinal or name methods work fine though of course. Any ideas?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924216#3924216

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924216


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to