-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: selecting from 2 table
PostPosted: Tue Mar 20, 2007 12:28 am 
Beginner
Beginner

Joined: Sat Mar 03, 2007 5:32 am
Posts: 20
when i try to select datas out from 2 tables and wanted to display them, i get the following error:
java.lang.ClassCastException

why is this so? what went wrong? please advice. thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 2:45 am 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi fangEve,

are you using lazy=true for that class in mapping .Concept is that you are trying to typecast proxy to your original class. Might me in your case.

_________________
Dharmendra Pandey


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 10:24 pm 
Beginner
Beginner

Joined: Sat Mar 03, 2007 5:32 am
Posts: 20
what is lazy=true?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 11:25 pm 
Expert
Expert

Joined: Tue Jan 30, 2007 12:45 am
Posts: 283
Location: India
Hi fangEve,

have a look on similar problem

http://forum.hibernate.org/viewtopic.ph ... 7e120dc39f

http://hibernate.org/315.html

_________________
Dharmendra Pandey


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.