Given a Hibernate Session, how can I determine if session.beginTransaction() has been called? Ultimately I would find it handy if there were a session.isInTransaction() method, but I can't find any way to get this information in the Session interface or in the SessionImpl interface, nor do I see any way to this information through an Interceptor.
As an aside, if beginTransaction is called, but no commit() or rollback() is called before the session is flush()'ed and close()'ed, what is the net effect? Is it the equivalent of a rollback()? Or a commit()? Or are the actions which took place in the transaction left in some sort of dysfunctional limbo?
Thanks in advance,
Frank
_________________ Frank Kurzawa
|