Hi,
We just moved from hibernate 2 to 3 and in doing so, updated all our queries to use bind variable queries instead of session.find.
The problem is, while processing a document with multiple records, we required the ability to look at both the db objects we have created in the preceding records as well as the db if none matching are found.
This worked fine with session.find, but it appears using the bind variable queries does not find the objects until the session is flushed which is not an option until the complete doc is processed. This is for performance reasons as flushing after each record is painfully slow.
Any ideas?
Michael
|