-->
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.  [ 2 posts ] 
Author Message
 Post subject: PostInsertEvent problem
PostPosted: Tue Apr 26, 2005 7:07 pm 
Beginner
Beginner

Joined: Wed Oct 01, 2003 11:01 pm
Posts: 23
I'm upgrading to Hibernate 3.0.1 from the 2.x line and I'm trying to switch from the Lifecycle interface over to the new event system.

Everything seems to be working as I'd think it would except for PostInsertEvent. When the PostInsertEvent gets fired, I'd expect that the insert statement to already be in the transaction queue so that if I need to reference the newly inserted item, I'd be able to. However, I'm finding that this is not the case.

Can anyone confirm if this is expected behavior, or is this a bug?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 2:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Well before that event is generated, the insert is performed against the database. Are you attempting to access it through the same JDBC connection? What is your isolation-level?


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.