You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to have a statement like SELECT ... FROM MYTABLE WHERE MYCOL IN (?,?,?,?,?, ...)
we could allow the input of a single JDOQL / JPQL parameter that is a Collection / array, and each element maps to a JDBC parameter.
The JDOQL could be something like SELECT FROM mydomain.MyClass WHERE :myParam.contains(this.field)
and myParam is passed in as a Collection.
One way would be to internally name the parameters as myParam#0, myParam#1, ... myParam#N.
The benefit of this feature is very limited since it is simply trying to make the SQL statement reusable, but that only applies when the Collection has the same number of elements.
The text was updated successfully, but these errors were encountered:
If we want to have a statement like
SELECT ... FROM MYTABLE WHERE MYCOL IN (?,?,?,?,?, ...)
we could allow the input of a single JDOQL / JPQL parameter that is a Collection / array, and each element maps to a JDBC parameter.
The JDOQL could be something like
SELECT FROM mydomain.MyClass WHERE :myParam.contains(this.field)
and myParam is passed in as a Collection.
One way would be to internally name the parameters as myParam#0, myParam#1, ... myParam#N.
The benefit of this feature is very limited since it is simply trying to make the SQL statement reusable, but that only applies when the Collection has the same number of elements.
The text was updated successfully, but these errors were encountered: