Hello,
I very much like the Criteria API for dynamically constructing
queries. I would like a simple way to persist these queries.
One idea I had for achieving this simply: translate the
query to hql, and then you've effectively serialized the
query, easily persisted to a varchar. In the reverse,
deserialize an hql into a Criteria API query, one that you
can bind back to a GUI representation for later editing.
Basically the idea is to be able to persist queries to
database.
Please consider this post a vote for having such a feature
in a future version of hibernate.
Sincerely,
/ Eitan
|