-->
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: Criteria.list() returns the same records twice
PostPosted: Wed Mar 15, 2006 8:38 pm 
Newbie

Joined: Wed Mar 15, 2006 8:19 pm
Posts: 1
Hi,

I'm new to Hibernate, and I'm using Hibernate 3.1.2 to access a simple table in Oracle 10g.

First, I tried using session.createQuery("from AuditReport").list() and it returns 18 records, which is correct. But when I used session.createCriteria(AuditReport.class).list(), it returns 36 records - the 18 records from the table are being returned twice!

Am I missing something?

Thanks.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.