-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Session.save() on transient instances are forceflushed.
PostPosted: Sun Oct 14, 2007 2:46 am 
Newbie

Joined: Sun Oct 14, 2007 2:41 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.