-->
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: Inner join
PostPosted: Thu Mar 01, 2007 1:57 pm 
Newbie

Joined: Wed Apr 05, 2006 9:08 am
Posts: 6
Hallo gerne würde ich es mit dem inner join statement versuchen. Ich schwimme aber noch etwas.

Die Tabelle ist

Code:
<hibernate-mapping package="org.troedel.model">
    <class name="Category" table="category">
        <id name="catId" type="long">
            <generator class="native" />
        </id>
        <property name="title" type="string" />                                                                                                                                                                 
        <property name="topCatId" type="long" />
        <property name="shopId" type="long" />
    </class>



Ich würde gerne einen inneren Join machen über die gleiche Tabelle. Wie muss ich das schreiben?
Ist dies korrekt und muss ich im xml File noch etwas deklarieren?
Code:
    from Category c
     c.topCatId inner join  c.catId


Danke


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 3:18 pm 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
In der Hibernate Reference Kapitel 14.5 gibt es ein paar Beispiele[/code]

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


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.