-->
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: Query returning a mix of normal and "composite" el
PostPosted: Wed Aug 04, 2004 11:48 am 
Newbie

Joined: Wed Aug 04, 2004 11:31 am
Posts: 1
I have been using Hibernate for some time quite happily, but ran into a issue with a new query. I am trying to create a query:

...
select s.name, s.description, count(elements(s.children)), elements(s.favoriteActivities), s.birthday
from Staff s
order by s.name
...

where s.children is a List and s.favoriteActivities is a Map. I am trying to get the query to return an Object[] that will let me access the "elements" of the favorite activites but this does not seem to work. Can anyone help me with this?

I am using Hibernate 2.0.1 with MySQL 4.1.

-- Eric


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.