-->
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: hibernate Interceptor behavior possible without flush?
PostPosted: Tue Oct 11, 2005 12:36 pm 
Newbie

Joined: Tue Oct 11, 2005 12:21 pm
Posts: 2
Howdy,

Short question:
=========
I'm looking for some way to get the capabilities of the hibernate Interceptor without having to perform a flush (which is required for onFlushDirty to be called ).

Longer explanation:
============
We're using spring for hibernate/transactions, so we're trying to keep transaction mgmt out of the application. But I'd like to put data replication to another db ( different data model, not hibernate based, 'manual' replication required ) in the application layer because failures will require user to resolve
Soo...I can't use a hibernate interceptor (called by flush) since by the time it is called ( again with spring managed txn ), I've already left the application layer...

Any ideas on what to do here to get a list of my database changes that have occured for the current (open) transaction? Just use a plane old Spring method interceptor for the Session methods ( e.g. save, update, delete )?

Thanks in advance!!


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.