Good afternoon! I�ve downloaded the o'reilly ejb 3.0 book's example code. I was running the source code related to native sql queries when I got a ClassCastException. The snippet source code is the following :
(The same code can be found on page 623 and 624 of o'reilly book)
The ClassCastException happens in:
If the result�s index is changed, the application works correctly.