I'm using scala to get my values from the following url : ?booksId=1,4,6&autorId=2
To retrieve the booksid values i did this : params.get("booksId") and the output of this is : Some(1, 4, 6). Some is the function added by Scala !! So what i want is to select all the booksId in my DB
(l.authorId like params.get("authorId").?) and
(l.booksId in params.get("booksId").?)
I converted the string to a list and i get the output : List((1,4,6)) but still didn't work, but i put the list directly List((1,4,6)) it works: Do you know why ? thanks