-->
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: Comparing 2 tables HQL
PostPosted: Tue Sep 13, 2011 10:39 am 
Newbie

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

I want to compare 2 tables and have as Result : the difference between them.
I mean the data that didn't existe in fisrt (PERSON) one comparing to the second one (AUTHENTIFICATION).

Code:
PERSON
  - id
  - name
  - tel
  - ...


Code:
AUTHENTIFICATION
  - idaut
  - Login
  - mpass
  - FKpersonneid


there is a join between the using : FKpersonneid

I tried this, but id'oesn't work !
Code:
List<Person> lstpers=HibernateTemplate.find(FROM Person WHERE id NOT IN (FROM AUTHENTIFICATION));



I don't find the true QHL syntaxe to create the querry


Top
 Profile  
 
 Post subject: Re: Comparing 2 tables HQL
PostPosted: Wed Sep 14, 2011 6:08 am 
Newbie

Joined: Tue Sep 13, 2011 10:15 am
Posts: 3
Someone can Help ?


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.