Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] QueryByExample collections not inluded

Hi,

Yeah I reverted to using the expression api to get this done. I didn't know
you could mix QBE with expressions though - i'll look into it even if it
won't be directly applicable to this particular problem.

I'll also log an enhancement request for querying collections. It would
really make it great for sub-tree matching on node based stores.

Thanks
Vackar



James Sutherland wrote:
> 
> I don't think QBE supports collections.  Perhaps log an enhancement
> request for this.
> 
> You can use an Expression query using anyOf to compare collections.  You
> can also mix QBE and an Expression in the same query.
> 
> 
> 
> Vackar wrote:
>> 
>> Hi,
>> 
>> I was wondering if there was a way of enabling collections to be compared
>> in eclipselink querybyexample.
>> 
>> i.e. for the following code
>> ReadAllQuery query = new ReadAllQuery();
>> query.setExampleObject(template);
>> getSession().executeQuery(query)
>> 
>> It will compare all fields of 'template', but not any items in a
>> collection.
>> 
>> Does anyone know if eclipselink supports comparison of collections as
>> well?
>> 
>> Thanks,
>> Vackar
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/QueryByExample-collections-not-inluded-tp25239792p25277885.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top