-->
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.  [ 3 posts ] 
Author Message
 Post subject: hql where clause
PostPosted: Mon May 14, 2007 8:27 pm 
Newbie

Joined: Thu May 03, 2007 4:22 pm
Posts: 2
Hi,

I need some help with hql here,

I have two tables in my database and the hql query is working fine with one of the tables but not with the other, I couldn't find the problem

The problem here is, it is returning the same record(even if the userId contains many records) many times

Please give me some solution

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 9:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You need to supply more information. Mappings, HQL sample etc etc.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 10:54 pm 
Newbie

Joined: Thu May 03, 2007 4:22 pm
Posts: 2
Hi,

Thanks for your reply

Actually, the problem got solved

The issue is with hbm.xml,the id field column had duplicate records in the database


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.