-->
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: Requête HQL pour comparer 2 tables__Resultat : la différence
PostPosted: Tue Sep 13, 2011 10:28 am 
Newbie

Joined: Tue Sep 13, 2011 10:15 am
Posts: 3
Bonjour,

J'aimerais comparer Deux tables et avoir comme résultat la DIFFÉRENCE entre elles.

Code:
PERSONNE][/size]
  - id
  - nom
  - prenom
  - ...


Code:
AUTHENTIFICATION
  - idaut
  - Login
  - mpass
  - FKpersonneid




Je veux avoir la liste des personne qui ne figure pas dans la table AUTHENTIFICATION (C.a.d les personnes qui n'ont pas le "FKpersonneid" présent dans AUTHENTIFICATION).

voici un essai mais qui me donne un faux résultat :

Code:
List<Personne> lstpers=HibernateTemplate.find(FROM Personne WHERE id NOT IN (FROM AUTHENTIFICATION));


je ne trouve pas la syntaxe exacte en HQL pour la requete !


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.