posted 12 years ago
Hi everybody,
I am a newbie to Hibernate. I have two tables Application and ApplicationUser.
Application - fields(id(primary key),application-name,description,application_url,app_id)
ApplicationUser - fields(id(primary key),user_id,app_id,date_of_request, application_name,status)
I created a method as follows to retrieve data.
My POJO classes are as follows,
Application.java
ApplicationUser.java
But it shows me the following error.
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.action.Application
But my query works fine in query browser. please help me to fix it out..