Hello,
I'm using Hibernate 3.0.5 and I am trying to re-use as much code as I can from already-existing software that uses the same database. I simply jarred up the existing tool and am using it as a library.
For this new tool, I'm using Hibernate's first-level caching. The existing tool uses Hibernate as well, but in a more complicated way.
There are some objects that the existing tool retrieves using jdbcTemplate. I would like to reuse this, but then cache these objects at the session level. Is there a way to do this with Hibernate? Can I somehow add it to the cache?
Any opinions on the best approach would be much appreciated. This is my first Hibernate project, and I did look for information on how to do this, but haven't found any.
Thanks
|