THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
The elsql: component is an extension to the existing SQL Component that uses ElSql to define the SQL queries.
...
Code Block | ||
---|---|---|
| ||
from("direct:projects") .setHeader("lic", constant("ASF")) .setHeader("min", constant(123)) .to("elsql:projects:com/foo/orders.elsql") |
And the elsql mapping file
Code Block |
---|
@NAME(projects) SELECT * FROM projects WHERE license = :lic AND id > :min ORDER BY id |
...