Jump to content

Recommended Posts

Posted

I was trying to use IN in SQL -  $X(IN, field, list)

Third parameter has to be list of something.

Base on documentation, it has to be collection.

How iist has to be set up?

How values could be added to the list?

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

So it looks like you have the syntax right for the comparison in sql. Then set up a parameter with class Collection and then nested type name as whatever your list is made of (eg Integer). Then you can either define a static paramter on the server or define your list of available values from a query based input. You can also assign a default value for the list like so '(java.util.Collection)(Arrays.asList(1,2,3))'

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...