Reading from a view but writing to a table
by Warren Smith
I need to create a hibernate mapping that reads from a view, but
writes to one of the tables that the view is based upon. The view
provides several read-only generated fields that I need to have
populated in my class. The view is not updateable, at least MySQL 5
won't let me update it.
I have scoured the documentation, but I still cannot figure out how to
accomplish this.
I'm probably overlooking something simple. Can someone enlighten me?
--
Warren Smith
18 years, 5 months
LoadContexts.cleanup() is never called
by Gail Badner
Hi,
I was looking over the changes in revision 11401 for HHH-2553 and I
noticed that a new method, LoadContexts.cleanupCollectionEntries(Set
entryKeys), is never called. This is because LoadContexts.cleanup() is
never called. LoadContexts.cleanup() is the only method that calls
CollectionLoadContext.cleanup(), which is the only method that calls
LoadContexts.cleanupCollectionEntries(Set entryKeys).
I also noticed that LoadContexts.cleanup() is the only method that calls
EntityLoadContext.cleanup(), so that method is also never called.
I just thought I'd mention this in case it was an oversight.
Gail Badner
18 years, 5 months