-->
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: Problem on fetching data.
PostPosted: Mon May 30, 2011 7:04 am 
Newbie

Joined: Wed May 18, 2011 5:39 am
Posts: 3
Hi,

I have a problem on fetching data. Following HQL is what I want to query (conceptually)

Code:
select
a.att1 as att1
,i.att2 as att2
,i.att3 as att3
,f.att4 as att4
,e.att5 as att5
,e.att6 as att6
,b.att7 as att7
,c.att8 as att8
,c.att9 as att9
,i.att10 as att10
from
tb1 as a
inner join a.key1 as b
inner join b.key2 as c
inner join c.key3 as d
inner join d.key4 as e
inner join b.key5 as f
inner join f.key6 as g
inner join f.key7 as h
inner join g.key8 as i
where a.cri = '1'
and g.cri = 'false'
.....


Is it possible to get the result in this format "a.b.c.att8" in Java ORM?

If I set it to lazy loading, when I get to child as "a.b", it returns full list of b object (not restricted by the criteria).
Please help~~~

I'm using 3.6.4-final.

Regards,
Benny


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.