-->
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: left outer join
PostPosted: Wed Apr 19, 2006 3:38 am 
Newbie

Joined: Wed Apr 19, 2006 3:18 am
Posts: 9
Hallo,

ich möchte zwei unabhängige Tabellen mit left outer join Verknüpfen. Die beiden Tabellen haben nur eine Spalte die gleich ist.
Der SQL-Code schaut folgendermasse:
Code:
SELECT b.*, s* FROM bbp_test.BLSBAS b left outer join bbp_test.BLSSTR s on b.SBLS=s.SBLS where b.sbls like '%N710900%'


Kann mir jemand sagen, wie ich den Code in Hibernate ausführen kann, denn existierende Beispiele zu diesem Thema handeln nur mit Tabellen die in Relation zu einander stehen.

Danke,
Jerinic Stasa

Hibernate version:
3.1

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 21, 2006 7:49 am 
Beginner
Beginner

Joined: Thu Apr 21, 2005 5:37 am
Posts: 45
Location: Switzerland
das sollte eigentlich analog funktionieren. Der * wird unter umständen nicht akzeptiert. du musst also evtl. explizit die attribute angeben. oder du beginnst direkt mit dem from.


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.