This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
This is a simple code to retrieve the expenditure from the expenditure table.
But I am getting ClassCastException Object can't be cast to Expenditure.
How to do it?
And when i used this code to print the result object, i am getting two objects..which is correct..
Now please help me how to do it? I just want to use it as a Expenditure object.
I have XML file expenditure.hbm.xml mapped to the table expenditure and the class is com.expensemanager.core.Expenditure so that i can call the methods over it.