I setup a big project with seam and EJB on the service layer(transactional layer).
The problem is, when in the conversation scope, I retrieve an entity in the EJB the transaction is opened and closed.
But, there is a session opened in the conversation scope, any change in the entity or in the Hibernate's Bag/List is replicated to the database (Flushed).
The FlushMode is configured as AUTO.
I need basically mantain the session to lazyloading operations, but without a transaction opened to that session. Is it possible to set up?
Please help-me, suggestions please.
use manual flushing which is perfectly described in the documentation.