-->
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: Modify the selected fields of a query
PostPosted: Sat Oct 02, 2004 11:41 pm 
Newbie

Joined: Sat Sep 11, 2004 10:31 pm
Posts: 4
Hibernate version: 2.1.6

A query with parameters is created and executed in a class. I then send this query to another class to perform another query based on the same named parameters (same where clause, like where p.name = :name) but different selected fields.

Is there an easy way to change the selected fields in the query? I looked at the api and at the source and it does not seem possible (unless I create another query class).

Thanks

Patrice Drolet


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 03, 2004 10:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No, there is no easy way.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 03, 2004 10:27 am 
Newbie

Joined: Sat Sep 11, 2004 10:31 pm
Posts: 4
Thanks for this fast reply. So I will look into another direction to solve this problem.

Patrice


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.