you can't do that
I know it's annoying, but you have to 
val query = s"${idQuery} and id > ? and executionTimeStamp <= ? order by executionTimeStamp asc" 
var array = mutable.Buffer[AnyRef](new java.lang.Integer(id), new Timestamp(endDate.getMillis))
try {
        Full(jdbcTemplate.query(query,array.toArray[AnyRef], ReportsWithIdMapper).toSeq)