-->
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: Notifications about changed or new entries in Hibernate
PostPosted: Mon Jun 15, 2009 5:32 am 
Newbie

Joined: Thu Mar 26, 2009 2:32 pm
Posts: 3
Location: Germany
Hello,

is there a method available which notifies me when an entry (object) is added/updated or deleted?

Context is the follwoing: Several users A, B, C, ... are working with the SQL database and can make now modifications, inserts and deletes. The application needs to be informed (notified) when such changes occur (e.g. to load) the changed entries for user A, B, C etc.

Obviously I could add some changeTime attribute to each object and run a query operation before I do other operations.

Anyway I thought that there might be a better option for this. As far as I understood Listeners like DefaultDeleteEventListener they are not appropriate for this problem or not of help for this problem?! At least when I tried those listeners they did not get notifications in case of deletes, updates or insert. Or am I wrong?

regards
Klemens

_________________
Dr. Klemens Waldhör
klemens.waldhoer@heartsome.de

> Araya Translation Tools
> Language Technology Consultancy
> eTourism Consultancy


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.