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: strange flush problem on executeQuery
PostPosted: Thu Mar 24, 2005 11:10 am 
Beginner
Beginner

Joined: Fri Nov 21, 2003 4:50 am
Posts: 23
In a stateless session bean a transactional method only executes a simple query: "from " + xyz.class

the xyz.class has several relations and collections.

The problem is, that after the execution of the query a session flush tries to update one of the related objects (which leads to a StaleObjectStateEx)

There are only field access mappings (no side effects with setters).

It only occurs on a system with concurent writes.

It occurs on connection isolation level read_uncommited, but not on repeatable_read.

Is there an explanation for this beahaviour?

Could it be possible that hibernate read's an object twice from the database? The first time an older version , the second time after a concurrent process changed it, the new changed version?

hibernate version is 2.2.6

Thanks for any comments

Armin


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