Hi all,
The query I am using takes a set as an argument which is why I'm using the IN method. My query works fine when the values passed in contain at least one entry, but if the list has no entries in it (even if it is initialized), it throws an exception.
I am using MySQL so perhaps I'm used to the way it handles IN() which may be different for Oracle or MS SQL.
Is this a hibernate bug or improper SQL on my part?
Code:
FROM Book book INNER JOIN book.authors author WHERE author IN(:searchAuthors) AND book.name LIKE :bookName
searchAuthors is guaranteed to be non-null, but is not guaranteed to be non-empty
Thanks,
Walter