-->
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: addScalar and addEntity in SQLQuery differ for Linux and Win
PostPosted: Thu Apr 19, 2007 4:26 am 
Beginner
Beginner

Joined: Mon May 02, 2005 6:17 pm
Posts: 41
Hi all.
I'm using Hibernate 3.0.5, Oracle 10g. I'm having trouble reading results from list returned by SQLQuery.list().
The code is:

Code:
query.addEntity("sa", ServiceAgreement.class)
            .addScalar("status_hour", Hibernate.LONG)
            .addScalar("status_day", Hibernate.LONG)
            .addScalar("status_week", Hibernate.LONG)
            .addScalar("status_month", Hibernate.LONG)
            .addScalar("status_quarter", Hibernate.LONG);

Returned list ,of course, contains list of arrays.
Under Windows XP, first five elements are scalars and the last one is entity.
Under Linux Fedora Core 4, first element is entity, and the next five are scalars!
So you see the problem. The jdbc driver is 10.2.0.3.0
Could this be the problem with the driver?
Thanks.

_________________
www.globalresearch.ca


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 19, 2007 5:02 am 
Beginner
Beginner

Joined: Mon May 02, 2005 6:17 pm
Posts: 41
The problem seems to have gone in version 3.2.2 but I couldn't not find anything in change log regarding this.

_________________
www.globalresearch.ca


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.