session.save() on transient instances (it's supposed to take transient instances) are always flushed immediately, even if Session.setFlushMode(FlushMode.COMMIT) is called.
This is the piece of code that was called:
DefaultSaveOrUpdateListener.entityIsTransient(SaveOrUpdateEvent event)...
My beef is that this isn't documented anywhere. I cannot find a single piece of documentation that states that Session.save() is always flushed immediately (though i've found internet articles that say the contrary), or any way to change this behavior.
Am I missing something? Please point me to some resources...
- invrnrv
|