Hi All,
I need to perform an ActiveObject query based on the operator IN using a collection of Criteria Value.
I found a post about the usage of IN : http://stackoverflow.com/questions/16581656/how-to-create-active-object-in-condition-query
But is it possible to have something like
public Collection<MyEntity> getMyEntities(Collection<Integer> _anyIds) { MyEntity[] entities = ao.find(MyEntity.class, Query.select().where(" ANY_ID IN (?)", anyIds)); if (entities == null) { return null; } return newArrayList(entities); }
Thanks
Vincent
Community moderators have prevented the ability to post new answers.
Please see my answer here: https://answers.atlassian.com/questions/170351/how-to-create-active-object-in-condition-query
Hope this helps
Cheers
Remo
Thanks for sharing it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.