-->
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: [ hibernate ] outer join
PostPosted: Wed Jul 20, 2005 4:24 pm 
Beginner
Beginner

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

J'ai crée deux tables :


Code:
create table VOITURE (
idvoit INT8 not null,
nomvoiture VARCHAR(255),
primary key (idvoit)
);

create table MATERIEL (
rmatrid INT8 not null,
nommat VARCHAR(255),
primary key (rmatrid)
);



Comment créer avec hibernate une jointure ouverte (outer join, inner join) entre deux champs non clés étrangeres VOITURE.nomvoiture et MATERIEL.nommat .



Merci


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 20, 2005 9:19 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
tu ne peux pas a moins d'avoir une relation many to one avec une property-ref dans ton mapping

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 12:22 pm 
Beginner
Beginner

Joined: Fri Apr 23, 2004 6:39 pm
Posts: 23
Merci pour votre réponse.
Auriez vous un exemple avec la relation many-to-one et l'attribut de classe que map "property-ref"?



Merci


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 5:52 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#mapping-declaration-manytoone

_________________
Emmanuel


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.