Hi,
I am running through a Hibernate Travel application and need some help with the following code. Everything works up until the line "trips4Person = (Trip[])personTrips.toArray();", where I receive a "java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ltravel.Trip;"
Trip and Person are
java beans. I have debugged it to the last line and it all works ok, but for some reason the cast to Trip is not working.
Any help would be much appreciated!
Thanks.