-->
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.  [ 3 posts ] 
Author Message
 Post subject: using projection and not getting object of class expected
PostPosted: Thu Mar 25, 2004 4:20 pm 
Newbie

Joined: Thu Mar 25, 2004 4:09 pm
Posts: 6
I'm using projection to avoid getting clobs when populating a GUI table but I'm getting back a list of object arrays with 3 objects in each instead of instances of the type I expect. I'm using HQL :
select document.docId, document.sourceTx, document.typeCd from com.potomacfusion.vid.dao.Document as document

Is there a way to specify this query to get back Document objects?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 6:22 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
from com.potomacfusion.vid.dao.Document as document ???

the problem is that you don't want the "clob attribute" of document?

please re formulate your problem.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 5:53 pm 
Newbie

Joined: Thu Mar 25, 2004 4:09 pm
Posts: 6
Yes I don't need the clob which is an attribute of the Document object just to display a table and let users select documents. I want to query and receive back all of the Document objects but I don't want all of the fields. Is that any clearer?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.