-->
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: some query Nhibernate problem
PostPosted: Thu May 28, 2009 12:32 am 
Newbie

Joined: Thu May 28, 2009 12:27 am
Posts: 1
Hi,
I have a sql query:
select a.Name, a.Address, A.Age
from AAA as a
where (a.Name = 'Name' and a.Address = 'Address')
or (a.Name='Name 1' and a.Address = 'Address 1')

How can I generate Nhibernate with use ICriteria or DetachedCriteria..
as I know, 'Or' in Nhiberate only use with 2 conditions, so that I don't know how to generate that query in Nhibernate.
Hope to see your answer soon,
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.