-->
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.  [ 4 posts ] 
Author Message
 Post subject: [ query ] inner/outer join
PostPosted: Sun May 23, 2004 1:03 pm 
Beginner
Beginner

Joined: Fri Apr 23, 2004 6:39 pm
Posts: 23
hello,

I try to use sql inner/outer join with Hibernate:

Code:
String query =
   select rlox, products
                from Rlox as rlox left outer join Products as products
    on rlox.latitude=products.id;



without declared relationship many to one in the mapping file:


Code:
<many-to-one class="hibernate.test.Rlox">
   <column name="latitude"/>
</many-to-one>



It is possible?



Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 1:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 23, 2004 1:35 pm 
Beginner
Beginner

Joined: Fri Apr 23, 2004 6:39 pm
Posts: 23
Thanks for reply,

but how to create the relationship in the mapping for outer join on rlox.latitude and products.id.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2004 12:24 pm 
Newbie

Joined: Fri May 21, 2004 8:02 pm
Posts: 4
Try,

select xxx from Rlox as rlox left outer join rlox.products as products

Umar


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.