-->
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.  [ 2 posts ] 
Author Message
 Post subject: Convert IQuery to ICriteria
PostPosted: Sun Sep 23, 2007 2:04 am 
Newbie

Joined: Tue Jul 24, 2007 1:07 pm
Posts: 5
Hi,

Please let me know,
Is it possible to construct a constant part of the query using IQuery syntax and then extend it with ICriteria like conditions?

I would like to avoid string concatenation for IQuery I currently do for dynamic part of the query text depending on the program context.

Thank you,
Alexander

_________________
www.aulix.com


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 11:04 am 
Newbie

Joined: Tue Jul 24, 2007 1:07 pm
Posts: 5
Anyone please help on this topic

it is annoying to build whole query using ICriteria methods

but also it is not good to have two branching "if" for IQuery:
1) for dynamic IQuery text building
2) for conditional parameter substitution

It would be better to use a mix of IQuery syntax and then extending it with ICriteria expressions.

Thanks, Alex

_________________
www.aulix.com


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