-->
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: select new Family(mother, mate, offspr)
PostPosted: Wed Mar 24, 2004 9:40 am 
Newbie

Joined: Wed Mar 24, 2004 9:30 am
Posts: 1
Location: PARIS - FRANCE
Hello,
I was unable to run the folowing sample, extracted from Hibernate's documentation (using v2.0.3) :

"
select new Family(mother, mate, offspr)
from eg.DomesticCat as mother
join mother.mate as mate
left join mother.kittens as offspr

assuming that the class Family has an appropriate constructor.
"

The point is what is the "appropriate constructor" for parameters that are "multi-valued" (like offspr in the sample) ?

I've tried a lot of things : Set, List, array of objects but nothing works ...
Hibernate never finds a constructor

It works fine with only "single-valued" parameters ..

Thanks
Eric


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 10:20 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
try primitive types only


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.