Reputation: 2764
I have a file containing a huuuge query (without parameters) so i'm wondering if it is possible to load the "query" attribute directly from that file instead of copying and pasting manually.
The query in the file is well indented and therefore more maintainable. Putting the whole command in the "query" attribute of the dih-config.xml requires to copy, paste and wrap in a single line all the stuff and I would like to avoid that.
Upvotes: 1
Views: 117
Reputation: 9049
AFAIK, that isn't possible (But I could be wrong!).
But in one of my implementations, we had a SQL query that was big enough and we ended up using a View to get this. Basically, create a view encapsulating the query.
There are a few advantages to this approach (IMHO):
Upvotes: 2