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: Mix Named Query and DetachedCriteria
PostPosted: Mon Oct 16, 2006 12:10 pm 
Newbie

Joined: Mon Oct 16, 2006 12:03 pm
Posts: 2
I just joined a team using Hibernate and we have a need to use a named query. The code already uses a DetachedCriteria to do all the filtering but I cannot find any examples of how to use it with a DetachedCriteria object.

Can it be done? If so, how? Do I use DetachedCriteria.forEntityName()?

I looked all over but cannot find any examples of this. In fact, I cannot even find an example of using forEntityName() and the JavaDocs are all but non-existent for the DetachedCriteria.

Thanks!


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.