-->
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: HQL returning Instances & Scalars returns NULLs
PostPosted: Thu May 25, 2006 2:02 pm 
Newbie

Joined: Thu May 25, 2006 11:55 am
Posts: 2
Hibernate: 3.1.3
Postgres: 8.1.2
Java: 1.5.0_06

A is mapped to B with a primary foreign key. Bidirectional one-to-one mappings used.

HQL: "Select a, b from A a join a.b b" works perfectly..

BUT

HQL "Select a, b, 'Some scalar' as c from A a join a.b b"

Returns "a" and the scalar "c" correctly, but NULLs out b

I've built a reduced and ready-to-run demo of this, but can't upload it. JIRA posting doesn't seem to be working (or I'm not allowed)

I need to be able to return scalars and instances together. If there's some work-around I'd appreciate hearing about it as soon as possible.

_________________
Conor Tee
Corvil Ltd.


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.