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
|