-->
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.  [ 1 post ] 
Author Message
 Post subject: could not read column value from result set: clazz_; Invalid
PostPosted: Wed Jun 09, 2010 4:58 am 
Newbie

Joined: Wed Nov 25, 2009 11:35 am
Posts: 17
I'm getting "could not read column value from result set: clazz_; Invalid column name" when try to add entity of parent class to SQLQuery.
Must it be some problem with mapping?


More specifically:
Code:
class Recurrjobs extends Jobs ...

session.createSQLQuery("select * from jobs, recurrjobs where jbintn=100079576 and rjjbintn(+)=jbintn").addEntity(Recurrjobs.class).addEntity(Jobs.class).list();


will fail if Recurrjobs with rjjbintn=100079576 does not exist and will success otherwise.

In same time
Code:
session.createQuery("from Jobs where jbintn=100079576").uniqueResult();

works perfectly in both cases and will return either Recurrjobs or Jobs (if Recurrjobs record rjjbintn=100079576 does not exist).


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

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.