-->
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: Problem in a query
PostPosted: Tue Jul 12, 2005 10:23 am 
Hi all, I have a problem running a query (using session.CreateQuery) :

I have two tables T1 and T2.
T1 and T2 have no link mapped in nhibernate between them but I need to do a join between those two tables :

Code:
SELECT
  T1.Field1,
  T2.Field2
FROM
  T1 LEFT JOIN T2 ON T1.Field3 = T2.Field3


Nothing is returned when executing "query.List()"
and looking at the log, I have this:

Code:
2005-07-12 14:43:17,125 [2720] DEBUG NHibernate.Impl.SessionImpl [] <> - opened session
2005-07-12 14:43:17,125 [2720] INFO  NHibernate.Impl.SessionImpl [] <> - SQL Query: SELECT T1.Field1, T2.Field2 FROM  T1 LEFT JOIN T2 ON T1.Field3 = T2.Field3
2005-07-12 14:43:17,140 [2720] DEBUG NHibernate.Impl.SessionImpl [] <> - closing session


Someone got an idea ?

Thx by advance


Top
  
 
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.