• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassCastException when reading database in hibernate

 
Roscoe Padsmith
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm getting an exception when trying to query the database and I really don't know why. Here's the trace :


I think the problem comes from the criteria I have defined because I need to check something about the time slot of a vacation :


because it works fine when I just do

I think the mapping has been done correctly so if you've ever had this problem or know a better way to check associations than Criteria or think there's something I misunderstood don't hesitate.

Thanks in advance,

-- Alain

[ May 23, 2008: Message edited by: Alain Mebsout ]
[ May 26, 2008: Message edited by: Alain Mebsout ]
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you found out at which line the exception is thrown and for casting which class?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!