This content has been marked as final.
Show 4 replies
-
1. Re: ClassCastException java.lang.Long in 4.0.4.GA
dornus May 22, 2006 9:12 AM (in response to dornus)My Setup is:
-WinXP
-MySQL 5.0.21
-Connector/J 3.1.12 -
2. Re: ClassCastException java.lang.Long in 4.0.4.GA
sunfire May 22, 2006 9:16 AM (in response to dornus)COUNT was already supposed to return Long in the specs for a while now but there was a bug in the previous EJB3 release to return Integer. It got fixed in the last release so returning Long is the way it is supposed to be.
-
3. Re: ClassCastException java.lang.Long in 4.0.4.GA
dornus May 22, 2006 9:29 AM (in response to dornus)Thanks for the heads up!
How am I supposed to get the count then?
I cannot do something likelong myCount = (long)q.getSingleResult();
-
4. Re: ClassCastException java.lang.Long in 4.0.4.GA
dornus May 22, 2006 9:30 AM (in response to dornus)Nevermind I got it, just needed to capitalize it.
(Long)