I would like to implement virtual views with a preprocessor. A simple example:
HQL before:
FROM PublishedArticle a
Effective HQL after:
FROM Article a
WHERE a.published = true
Essentially I need a way to process queries before they get executed (instead of creating views on-the-fly which would have a high cost).