-->
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: Can Hibernate generate events based on DB updates?
PostPosted: Mon May 22, 2006 9:33 am 
Newbie

Joined: Thu May 11, 2006 6:49 am
Posts: 3
I've looked through the documentation and i'm struggling to get a clear handle on this.

I've got an app that is supposed to monitor a db table. Whn another app inserts a row into that table, my app reads the data, processes it, and pushes it out to a third party.

I could write a manual process, where I poll the DB regularly and check angainst a set of persisted objects, and figure out inserts, updates and deletes, but I was wondering if Hibernate could do this for me?

Kinda like I supply some class that has update(), delete() and insert() methods that receive an object representing the affect row, and hibernate will call it for me?

Does such a thing exist within hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 9:35 am 
Newbie

Joined: Mon May 22, 2006 6:35 am
Posts: 3
Have a look at
http://www.hibernate.org/hib_docs/v3/re ... vents.html

Intereceptors are the way to go

Greetz,
Pjotr


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.