I have a pretty complex SQL query that returns results from a few different tables and performs a UNION etc. I execute this query using straight JDBC using session.connection().
I would like to be able to cache my results though. I know there is an Update Timestamp cache that Hibernate uses that has the timestamp of the latest change to any underlying table. Is there an API call somewhere that I can pass in a list of tables or POs I would like to check and a timestamp, where a boolean would come back indicating if the table has been modified since that time? This is the only way I would trust my cached results.
Thanks in advance,
Daniel
|