-->
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: HQL query with list compare
PostPosted: Fri Feb 04, 2011 9:33 am 
Newbie

Joined: Fri Feb 04, 2011 9:04 am
Posts: 4
Can someone help me with my query?

I have an custom object defined with a list of strings in it. These string are id's of a different type

I have a list of strings of those id's with which I want to check equality against.

public class Foo {
@CollectionOfElements(targetElement = String.class)
private List<String> bar;
}

I want to be able to give a list<String> to methode List<Foo> findGebruiksBesluiten(final List<String> beer);
I want to know, if any of the String in beer are in bar;

Does anyone no if this is possible? And if so, how?


Top
 Profile  
 
 Post subject: Re: HQL query with list compare
PostPosted: Mon Feb 14, 2011 6:14 am 
Newbie

Joined: Fri Feb 04, 2011 9:04 am
Posts: 4
No one with any Idea?!


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.