-->
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: getNamedQuery() with Criteria
PostPosted: Thu May 17, 2007 1:30 pm 
Newbie

Joined: Tue May 15, 2007 5:02 pm
Posts: 12
is there a way to *marry* getNamedQuery() with Criteria queries in Hibernate3, so that one can apply additional constraints on an already defined query on the fly?

I tried also to use filters, but as soon as they are gobal session-wide objects, I had to manually enable/disable each of them. That also could lead to some weird consequences if one would use OSIV...

So, is there a nice way to handle that?


Top
 Profile  
 
 Post subject: getNamedQuery() with Criteria
PostPosted: Thu May 17, 2007 3:41 pm 
Beginner
Beginner

Joined: Wed Apr 18, 2007 6:17 pm
Posts: 49
Location: Dominican Republic
that would be nice that you can create a Criteria from a NamedQuery, we can save a few lines of code with that.


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.