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: Entity updating automatically via UpdateTimestampsCache
PostPosted: Mon Jun 23, 2008 1:53 pm 
Beginner
Beginner

Joined: Thu Nov 16, 2006 11:34 am
Posts: 26
Location: Boston
Hibernate version:
3.2.6GA

I'm using Seam 2.0.2GA wit EJB3 in JBoss as my development stack. My app is a fully working app built in 4 months. I've been stuck with this problem for quite sometime now and a forum post, http://www.seamframework.org/Community/SeamUpdatesEntitiesAutomaticallyViaUpdateTimestampsCache on JBoss Seam did not fetch any results, hence the repost here

Scenario: I have an entity A in extended persistent manged Context displayed in the UI search page.
- user clicks search
- page displays form with values (the entity A)
- User changes form values
- User does NOT click save
- User changes some search criteria and clicks Search again

Now, behind the scenes, even before search is invoked, hibernate is firing a SQL update query on entity A and is saving!

I've tried setting the autoflush mode to MANUAL in the search method, still it updates.

PL suggest what I need to investigate further


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.