Hi all,

I used to have a query that worked before I upgraded to 4.0.4.GA. It used to be 
ejb3 rc3. Anyway, lets say I have entity bean A, which has a private variable B 
where B is a persisted enum. Now I used to query in a session bean something 
like


Query q = entityManager.createQuery("select * from A a where B:=b");
q.setParameter("b", b.ordinal);

However now I'm getting a ClassCastExeption on this parameter to do with 
Integer. I'm using mysql and I've checked that persisted enums are still stored 
as integers which they are. Has anyone got any ideas what I can do?

thanks very much,
Brian

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

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


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to