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: Optimisation de jointure
PostPosted: Wed Oct 25, 2006 6:17 am 
Beginner
Beginner

Joined: Tue Sep 19, 2006 1:48 pm
Posts: 20
Bonjour,
J'ai un problème d'optimisation et je pense d'approche par rapport à Hibernate.

Imaginons que je gère des PERSONNES qui possèdent des VOITURES.
J'ai 2 tables PERSONNE et VOITURE, VOITURE possédant une clé étrangère, celle de PERSONNE.
Imaginons maintenant que seul le n° d'immatriculation des VOITURE m'intéressent dans le cadre de la relation one-to-many de PERSONNE VERS VOITURE.
Comment dois-je m'y prendre pour mapper cette relation? Car si je mappe la classe Voiture, je vais me retrouver avec toutes les infos des voitures, ce qui utilise des ressources inutiles!
Est-il possible de ne mapper qu'un attribut d'une classe particulière?


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