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: DetachedCriteria ?
PostPosted: Thu Aug 23, 2007 4:49 am 
Beginner
Beginner

Joined: Wed Mar 14, 2007 4:29 am
Posts: 33
hello

i'm using nhibernate and i need to make a subquery.
I want to use DetachedCriteria but i don't get it when i do NHibernate.Expression.DetachedCriteria :(.
Could you tell me where is this function ?

Thx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 23, 2007 7:28 am 
Regular
Regular

Joined: Thu Nov 23, 2006 10:29 am
Posts: 106
Location: Belgium
Hi,

You can use the static For() method on the DetachedCriteria class:
Code:
DetachedCriteria crit = DetachedCriteria.For<Entity>();

_________________
Please rate this post if it helped.

X.


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.